delete selected folder leaves empty dir on disk
Rob Siemborski
rjs3 at andrew.cmu.edu
Fri Jan 10 15:30:45 EST 2003
On Fri, 10 Jan 2003, John Alton Tamplin wrote:
> So is it ok to sweep the filesystem and delete any empty directories?
> Would that leave a race condition with an imapd creating a new folder?
Yes, it could.
> It seems like it should be safe to rmdir() the directory even if some
> process is sitting on it or has it open -- there might need to be
> additional error checking to handle a directory disappearing
> unexpectedly, but that doesn't seem to be a big problem.
We do currently call rmdir() on the directory.
The applicable code is in mailbox_delete() in mailbox.c if you'd like to
suggest a patch.
-Rob
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper
More information about the Info-cyrus
mailing list