Re: [RFC PATCH] file as directory
- From: Al Viro <viro@xxxxxxxxxxxxxxxx>
- Date: Wed, 23 May 2007 09:29:18 +0100
On Wed, May 23, 2007 at 10:05:21AM +0200, Miklos Szeredi wrote:
Er... These mounts might not be propagated, but what about a bind
over another instance of such file in master tree?
So your question is, which mount takes priority on the lookup? It
probably should be the propagated real mount, rather than the
dir-on-file one, shouldn't it?
There might be dragons in that area...
I think they should be the same superblock, same dentry. What would
be the advantage of doing otherwise?
Then you are going to have interesting time with locking in final mntput().
Final mntput of what?
When the last reference to your mount goes away.
BTW, what about having several links to the same file? You have i_mutex
on the inode, so serialization of those is not a problem, but...
Sorry, I lost it...
Say /foo/bar/a is such a file.
cd /foo/bar
ln a b
now do lookups on a/ and b/
What happens?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [RFC PATCH] file as directory
- From: Miklos Szeredi
- Re: [RFC PATCH] file as directory
- References:
- [RFC PATCH] file as directory
- From: Miklos Szeredi
- Re: [RFC PATCH] file as directory
- From: Al Viro
- Re: [RFC PATCH] file as directory
- From: Miklos Szeredi
- Re: [RFC PATCH] file as directory
- From: Al Viro
- Re: [RFC PATCH] file as directory
- From: Miklos Szeredi
- Re: [RFC PATCH] file as directory
- From: Al Viro
- Re: [RFC PATCH] file as directory
- From: Miklos Szeredi
- [RFC PATCH] file as directory
- Prev by Date: [RFC] LZO de/compression support - take 3
- Next by Date: Re: [patch 089/181] Blackfin: on-chip ethernet MAC controller driver
- Previous by thread: Re: [RFC PATCH] file as directory
- Next by thread: Re: [RFC PATCH] file as directory
- Index(es):