mar-file-system / marfs

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

Closed jti-lanl closed 6 years ago

jti-lanl commented 7 years ago

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).

jti-lanl commented 6 years ago

Lei took care of this, starting with efbe05bbecfe. I've tweaked to go through the MDAL.