eventfs icon indicating copy to clipboard operation
eventfs copied to clipboard

Per-directory maximum size

Open jcnelson opened this issue 10 years ago • 2 comments

Allow the directory owner to write a number to the file op_max_size or the like to limit how many files a directory may contain. Any attempts to create a file in the directory after this threshold has exceeded should fail with EDQUOT. To discover when there's space, senders would open an inotify(2) handle on the directory and watch for files to be removed.

jcnelson avatar Sep 05 '15 22:09 jcnelson

We already have this in the static config file, as of 48a82c49179a0fa459da6fa4b7e1fdb7506ae166.

jcnelson avatar Sep 21 '15 18:09 jcnelson

Actually, don't use a file. Use an xattr, like user.eventfs_max_files, that can be set on the directory.

jcnelson avatar Sep 22 '15 21:09 jcnelson