automounts that reference automounts?

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

 



Hi,

I'm trying to create an executable automount script that will use
overlayfs to union paths from another automount executable defined
map. But it seems like this is not automatically triggering the
required mounts.

For example, I have an executable mount that will correctly setup
these paths when accessed (auto.hosts):

/hosts/server1/blah
/hosts/server2/blah

And then I have another executable map (auto.global) that outputs
something like this:

-fstype=overlay,ro,lowerdir=/hosts/server1/blah\:/hosts/server2/blah global

If run the mount directly using "sudo mount -t overlay overlay -o
lowerdir=/hosts/server1/blah\:/hosts/server2/blah /global" it
correctly triggers the mounting of the /hosts paths first.

But if done via the executable automount script above, then it doesn't
trigger the /hosts mounts first and fails. I also can't seem to stat
or trigger the mounts of the /hosts paths in the executable autofs
script prior to outputting the overlayfs mount string.

I can however get it to trigger a mount of a /hosts path if I just try
to do a bind mount of it from another mount map.

Is this something specific to overlayfs and/or is there a limitation
on how mounts across executable autofs maps can interact and trigger
each other?

Cheers,

Daire



[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux