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

Quota Tool Modification: Per-Namespace Trash #211

Open gransom opened 5 years ago

gransom commented 5 years ago

As a result of our new scheme for handling marfs trash creation (per-namespace trashes in the same fileset, see issue #203), the quota tool will need to be edited to ignore trashed files when summarizing namespace usage. The current plan is to do this by checking for a user.marfs_trash xattr on all files (should exist on trash companion files). If the xattr is found, the file possessing the xattr should not be counted against quota. Additionally, the value of the xattr should contain a namespace and file size (of the trashed file corresponding to the marked companion file) which should be subtracted from the quota of the given namespace.