Re: [PATCH 1/6] Add a dentry op to handle automounting rather than abusing follow_link() [ver #2]

David Howells
2010-07-26T14:20:12Z

Ian Kent <raven@themaw.net> wrote:

> > (4) Stops pathwalk at the automount point and returns that point in the fs
> > tree if it decides not to automount rather than reporting ELOOP (see its
> > use of EXDEV for this).

Does it make autofs easier if d_op->d_automount() is allowed to return -EXDEV
to request this? Then you can return it in Oz mode to allow the daemon to
see/use the underlying mountpoint without recursing back into d_automount().

Ideally, the daemon would use AT_NO_AUTOMOUNT, but there's no way to pass that
to sys_mount() or sys_umount().

David