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.
Allow the directory owner to write a number to the file
op_max_sizeor 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.