Re: mnt_count accounting broken

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

  • Next message: Andreas Dilger: "Re: [patch] Yenta module race condition"

    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 : Fri May 05 2000 - 16:45:13 EDT