Re: mnt_count accounting broken

From: Alexander Viro (viro@math.psu.edu)
Date: Fri May 05 2000 - 14:22:04 EST


On Fri, 5 May 2000, Tigran Aivazian wrote:

> On Fri, 5 May 2000, Alexander Viro wrote:
> > Solution:
> > ramfs_umount_begin() that would do equivalent of rm -rf.
> > With the changes I'm doing right now we will catch busy filesystems
> > without dentry scan, thus we are safe here.
>
> but umount_begin() is invoked only with MNT_FORCE. Are you suggesting that
> ramfs filesystems should be umountable only by 'umount -f'?

Ouch. Yes, you are right. Oh, shit... We certainly can decide that for
some fs types umount_begin is called always, but that quickly becomes
rather ugly. Linus, your opinion? The problem is obvious - you hold extra
references to dentries, so umounting the nonempty fs is kinda tricky. OTOH
here we really want all inodes to be destroyed... Comments?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun May 07 2000 - 21:00:18 EST