Still needs a work over in terms of error handling, progress reporting, warning output, refactoring etc. Also misses the volume reuse/reclaim algorithms. But it passes the unit tests now, with and without a local database. git-svn-id: https://duplicati.googlecode.com/svn/sandboxes/Kenneth/ForestHash@1526 59da171f-624f-0410-aa54-27559c288bec
27 lines
846 B
C#
27 lines
846 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Duplicati.Library.Interface
|
|
{
|
|
/// <summary>
|
|
/// Backends that support reporting quota should implement this interface
|
|
/// </summary>
|
|
public interface IQuotaEnabledBackend : IBackend
|
|
{
|
|
/// <summary>
|
|
/// The total number of bytes available on the backend,
|
|
/// may return -1 if the particular host implementation
|
|
/// does not support quotas, but the backend does
|
|
/// </summary>
|
|
long TotalQuotaSpace { get; }
|
|
/// <summary>
|
|
/// The total number of unused bytes on the backend,
|
|
/// may return -1 if the particular host implementation
|
|
/// does not support quotas, but the backend does
|
|
/// </summary>
|
|
long FreeQuotaSpace { get; }
|
|
}
|
|
}
|