Messages in this thread | | | Date | Mon, 31 May 1999 16:02:56 +0200 | From | Jan Kasprzak <> | Subject | Re: Local loopback mounts (RFD) |
| |
Alexander Viro wrote: : : > I think the Linux dentry mechanism can allow us to have : > loopback mounts faster and more effective than NFS mount from 127.0.0.1. Note : : Yes, but the way you have proposed is broken. : : > The loopfs_read_super() just creates the root dentry and points : > its dentry->d_inode to the inode of the target directory. This has the : > advantage that both /some/directory and /another/directory works with : > same inodes, so file locks works properly, open(O_EXCL) works properly, etc. : : ... and one can trivially create loops in on-disk structure that way : (think of nasty games with rename()). We do need a way to compute the : foo-is-ancestor-of-bar relation. : Well, if I do it using mount(2) and a new FS type, only root can do it. And root is able to break the system anyway.
-Yenya
-- \ Jan "Yenya" Kasprzak <kas at fi.muni.cz> http://www.fi.muni.cz/~kas/ \\ PGP: finger kas at aisa.fi.muni.cz 0D99A7FB206605D7 8B35FCDE05B18A5E // \\\ Czech Linux Homepage: http://www.linux.cz/ /// |||| > Where do the -- MARK --s come from ? |||| |||| It is the sound of Tux the penguin chewing on your system logs. ||||
- 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/
| |