Re: mnt_count accounting broken

From: Linus Torvalds (torvalds@transmeta.com)
Date: Fri May 05 2000 - 14:21:19 EST


On Fri, 5 May 2000, Tigran Aivazian wrote:
>
> Here is the patch that fixes the problem. But I still want to understand
> why Linus put those extra dget/dput in mknod/link/unlink... perhaps they
> are needed after all.

They are definitely needed.

In order to unmout a ramdisk, it has to be empty. Which makes sense: it
would be bad if (for example) you by mistake unmounted a ramdisk due to
some kind of auto-unmount (autofs or supermount come to mind), and lost
all your data.

So you need to h ave a "rm -rf /ramdisk ; umount /ramdisk" or something
similar. And then umount will work.

                Linus

-
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