Re: [RFC PATCH] file as directory



On Wed, May 23, 2007 at 09:19:17AM +0200, Miklos Szeredi wrote:
Eh... Arbitrary limitations are fun, aren't they?

But these mounts _are_ special. There is really no point in moving or
pivoting them.

pivoting - probably true, moving... why not?

What about MNT_SLAVE stuff being set up prior to that lookup?

These mounts are not propagated. Or at least I hope so. Propagation
stuff is a bit too complicated for my poor little brain.

Er... These mounts might not be propagated, but what about a bind
over another instance of such file in master tree?

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().
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...

I think doing this recursively should be allowed. "Releasing last ref
cleans up the mess" should work in that case.

Releasing the last reference will lead to cascade of umounts in that
case... IOW, need to be careful with locking.
-
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/



Relevant Pages

  • Re: [patch 8/9] unprivileged mounts: propagation: inherit owner from parent
    ... "nosuid" flag, set this flag for the child as well. ... I think the nosuid thing is meant to prevent suid mounts being ... introduced into a "suidless" namespace. ... mounts propagation from non-user mounts to user mounts. ...
    (Linux-Kernel)
  • Re: Why doesnt light travel at infinite speed?
    ... The fact that aging stops for objects moving ... They are not observing the distant object anyway. ... Light doesn't travel from any point of propagation, ... It does not occur some time before the causing event, ...
    (sci.physics)
  • Re: [patch 8/9] unprivileged mounts: propagation: inherit owner from parent
    ... "nosuid" flag, set this flag for the child as well. ... I think the nosuid thing is meant to prevent suid mounts being ... introduced into a "suidless" namespace. ... mounts propagation from non-user mounts to user mounts. ...
    (Linux-Kernel)
  • Re: unprivileged mounts git tree
    ... goto out; ... There's no real security gain to be had ... propagate mounts back into the source, ... Because it's not a change in propagation among existing mounts, ...
    (Linux-Kernel)
  • Re: Damn you, FEDEX! or Nikon D40 lost in Springfield, MO blackhole.
    ... the 2 mp Mavica he had been using with a Nikon D40. ... After shopping around, he got me to order one for him. ... The shipper had it insured, but from what I have read it could take weeks to sort this crap out. ... You may get your insurance from FedEx and a couple weeks later they find it and deliver it. ...
    (alt.photography)