From: Frank T Lofaro (fl0p+@andrew.cmu.edu)
Date: 04/28/93


From: Frank T Lofaro <fl0p+@andrew.cmu.edu>
Subject: Re: Unremoveable directories...
Date: Wed, 28 Apr 1993 21:02:27 -0400

I've patched rmdir (I think I had to do it to each fs, in
fs/{fsname}/namei.c or inode.c (forget which) so that it will let you
remove busy directories. It doesn't seem to hurt anything, except users
in those directories somethimes get spurious permission denieds instead
of the 'no such file or directory' or even I/O error messages that one
would expect. All one has to do is just rip out/ifdef out the part of
the rmdir routine that returns -EBUSY. If you shutdown cleanly, the
directory won't be busy right before the final sync so there shouldn't
be any problems. In any event, it *should* be safe. It hasn't hurt me
yet.