You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DavHandler uses the used space from DavFileSystem::get_quota() only on the root collection.
On every other resource DavMetaData::size() is used instead. On LocalFs that means that every subdirectory only reports an used space of around 4096 bytes (the size of the directory index).
RFC 4331 states:
The DAV:quota-used-bytes value is the value in octets representing
the amount of space used by this resource and possibly a number of
other similar resources, where the set of "similar" meets at least
the criterion that allocating space to any resource in the set will
count against the DAV:quota-available-bytes. It MUST include the
total count including usage derived from sub-resources if
appropriate. It SHOULD include metadata storage size if metadata
storage is counted against the DAV:quota-available-bytes.
So for collections it's more correct to re-use the used space from DavFileSystem::get_quota() instead of using DavMetaData::size(), as the size of a directory as reported by the OS doesn't include the sizes of contained files on usual file systems.
The text was updated successfully, but these errors were encountered:
DavHandler
uses the used space fromDavFileSystem::get_quota()
only on the root collection.On every other resource
DavMetaData::size()
is used instead. OnLocalFs
that means that every subdirectory only reports an used space of around 4096 bytes (the size of the directory index).RFC 4331 states:
So for collections it's more correct to re-use the used space from
DavFileSystem::get_quota()
instead of usingDavMetaData::size()
, as the size of a directory as reported by the OS doesn't include the sizes of contained files on usual file systems.The text was updated successfully, but these errors were encountered: