Clearing the Undelete Directory

Eventually, there will be many files in the undelete directory.  Therefore, this directory must be cleaned.  The function that does this is called clrdel.  It accepts a filesystem's mount point and proceeds to delete the entries and free the inode of the files found in that filesystem's undelete directory.

The undelete directory must be cleaned periodically.  In order to automate this somewhat tedious task, we wrote undeld, which is a daemon that periodically checks which ext2 partitions are mount as read-write and runs clrdel on each of them.  The frequency of cleaning is a parameter, given in terms of the number of days between cleaning.

Back...