Re: [PATCH 1/7] autofs4: Save autofs trigger's vfsmount in super block info

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/18/2010 01:57 AM, Al Viro wrote:
> On Sat, Jan 16, 2010 at 10:17:14AM +0000, Al Viro wrote:
>> 	* [unsolved, to be dealt along with per-superblock write counts]
>> do_remount() plays fast and loose with MNT_READONLY for !MS_BIND case.
>> 	* [*really* unsolved] it remains to be seen whether we want to
>> propagate modifications of mount flags via shared subtree stuff.  For most
>> of those it's trivial (and arguably the right thing to do), but ro/rw is
>> really nasty.  Nick's mnt_want_write() implementation will need very careful
>> analysis.
> 
> 	Speaking of autofs4, what the hell is going on in
> autofs_dev_ioctl_ismountpoint()?  Checks in there make no sense,
> both the "could that dentry be negative?" and whatever the hell
> it is trying to do with mnt_mountpoint.  Ian?

In that case we may find an autofs mount that has something mounted on
top of it and user space wants to know the super of the covering mount.

If there is something mounted on top of it user space needs to know if
it is another autofs file system or some other type of file system. So
if the nameidata path, located by autofs_dev_ioctl_find_super(), is not
the top (or bottom, depending on the terminology you prefer) then we
need to follow the mount and return the magic of the thing mounted on
top of it.

Ian
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux