摘要:
An online tree quota check tool computes quota usage of files in a directory tree while the structure of the directory tree keeps changing due to concurrent write access by other applications and clients. The quota check tool computes the quota usage without interfering with the ongoing file access operations that change the directory content and quota usage. A quota check database keeps track of which files have been checked and which have not, so that each file is checked and its quota usage is accumulated once and only once while directories are moved and directory scans are restarted as a result of the changing directory content. File system operations are modified to synchronize with the online tree quota check. The quota check tool can be single threaded or multi-threaded. A multi-threaded tool dispatches idle directory iteration threads to scan subdirectories in the directory tree.
摘要:
For automatically committing a file of a file system to a WORM committed state when the file has not been modified for a certain period of time, a file server maintains a list of file identifiers and periodically scans the list to check whether or not the certain period of time has expired for each file on the list. If so, the file is committed to the WORM state. The file server also enforces an in-place lock in response to a client request to modify or delete a file when the certain period of time is found to have expired for the file. A minimum modify time and a maximum modified time are included in each entry of the list of file identifiers in order to skip entries and to reclaim memory of entries during the periodic scan.