On Fri, Dec 31, 2004 at 05:41:02PM +0000, William wrote:
Regularly, when attempting to umount() a filesystem I receive 'device is busy' errors. The only way (that I have found) to solve these problems is to go on a journey into processland and kill all the guilty ones that have tied themselves to the filesystem concerned.
Do you know about the existence of the MNT_DETACH flag of umount(2), or the -l option of umount(8)?
It seems that does at least some of the things you are asking for.
<rant> I think part of the nastiness is that mount now means too things: 1) Read the superblock, fire up the fs, etc. 2) Shove the thing into the namespace.