MarFS provides a scalable near-POSIX file system by using one or more POSIX file systems as a scalable metadata component and one or more data stores (object, file, etc) as a scalable data component.
Other
96
stars
27
forks
source link
marfs_statvfs() should reflect quota-limitations #195
The idea is that users see how much space they can actually write, according to their quota and how much they've already written.
From the config we have per-namespace quotas (or unlimited). If limited use that, otherwise the space reported by the underlying FS. Subtract the size of fsinfo from that, and (if smaller than what the underlying FS shows) divide by blocks (or fragments) to generate the values for f_bfree (or f_blocks).
The idea is that users see how much space they can actually write, according to their quota and how much they've already written.
From the config we have per-namespace quotas (or unlimited). If limited use that, otherwise the space reported by the underlying FS. Subtract the size of fsinfo from that, and (if smaller than what the underlying FS shows) divide by blocks (or fragments) to generate the values for f_bfree (or f_blocks).