Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per-directory maximum size #2

Open
jcnelson opened this issue Sep 5, 2015 · 2 comments
Open

Per-directory maximum size #2

jcnelson opened this issue Sep 5, 2015 · 2 comments
Labels

Comments

@jcnelson
Copy link
Owner

jcnelson commented Sep 5, 2015

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 jcnelson added the Task label Sep 5, 2015
@jcnelson
Copy link
Owner Author

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

@jcnelson
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant