Messages in this thread | | | Date | Mon, 17 Jan 2005 14:30:27 -0500 | From | Mike Waychison <> | Subject | Re: [RFC] shared subtrees |
| |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
J. Bruce Fields wrote: > On Mon, Jan 17, 2005 at 01:31:02PM -0500, Mike Waychison wrote: > >>Corner case: how do we handle the case where: >> >>mount --make-shared /foo >>mount --bind /foo /foo/bar >> >>A nested --bind without sharing makes sense, but doesn't when sharing is >>enabled (infinite loop). > > > How does this force an infinite loop? I don't see it. >
Well, if I understand it correctly:
(assuming /foo is vfsmount A)
$> mount --make-shared /foo
will make A->A
$> mount --bind /foo /foo/bar
will create a vfsmount B based off A, but because A is in a p-node, A->B, B->A.
Then, we attach B to A in the vfsmount tree, but because A->B in the propagation tree, B also gets a vfsmount C added on dentry 'bar'. Recurse ad infinitum.
Make sense?
- -- Mike Waychison Sun Microsystems, Inc. 1 (650) 352-5299 voice 1 (416) 202-8336 voice
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ NOTICE: The opinions expressed in this email are held by me, and may not represent the views of Sun Microsystems, Inc. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFB7BJTdQs4kOxk3/MRAm9HAJ9gLZC9N1QkpriYtwE6pfJ7u47FyACfYXwU tTIEFgSUeoocka4RZVe9McI= =iWNB -----END PGP SIGNATURE----- - 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/
| |