On Tue, 2007-09-25 at 18:21 +0200, Matthias Koenig wrote:
> Hi,
> 
> we noticed a problem concerning loop mounts on locations that 
> have to be mounted before. E.g. consider the following situation,
> a NFS server exporting a cd image, which we want to loop mount
> locally to get access to the content:
> 
> auto.master:
> /cdimage        auto.cdimage
> /cdcontent      auto.cdcontent
> 
> auto.cdimage:
> foo             nfsserver:/cdimage/foo.img
> 
> auto.cdcontent:
> foo             -fstype=auto,loop       :/cdimage/foo/foo.img
> 
> The access to /cdcontent/foo will fail, when /cdimage/foo is not 
> mounted before, because spawn_mount does not use SPAWN_OPT_ACCESS
> in this case.

This test case seems broken to me.
Can you check you've described this correctly please.
Maybe even try this exact setup yourself.

Even if the maps were correct the procedure you describe wouldn't call
spawn_mount first, it would call spawn_bind_mount, which would then
trigger the mount through the access call.

Ian


_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to