Messages in this thread |  | | | From | John Bradford <> | | Subject | Re: Symlink indirection | | Date | Sun, 15 Dec 2002 12:58:14 +0000 (GMT) |
| |
> > "AW" == Andrew Walrond <andrew@walrond.org> gives an example of > > a/{x,y,z}, b/{y,z}, c/z mounted on d/. in that order, later > > mounts covering the earlier ones. > > > > AW> echo "d/w" > d/w would create a new file in directory a.
I disagree. It should create it in directory d, even though that is the mount point.
A union mount should include files from another directory, but writes should go to the actual named directory.
> > Back to your example; what do you wish to happen when we do > > this? > > > > $ mv d/z d/zz && test -f d/z && cat d/z > > > > Here we rename d/z (which is really c/z) to zz. Does this > > reveal z that used to be hidden by that, namely b/z, and "cat > > d/z" now shows "b/z"? > > Yes - exactly
Union mounts should be read only.
If read-write union mounts are needed, I don't think that we should implement them significantly differently to the way they work in BSD.
John. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |