Re: Using wildcards in multi-mount maps

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

 



On 06/01/2015 06:10 AM, Ian Kent wrote:
On Mon, 2015-06-01 at 11:58 +0800, Ian Kent wrote:
On Sun, 2015-05-31 at 20:05 +0200, Frank Thommen wrote:
Hi,

are wildcards within multi-mount maps supposed to work?

Good question.


I have the following entry in our maps:

/etc/auto.master (local):
     /mymount yp:mymap --ghost


Indirect NIS map for /mymount:
     $ ypmatch webapps mymap
     /*         -timeo=30                   server:/local/exports/&

Yeah, that can't work.

[...]

The other approach that might be useful is using submounts (Sun map
format) like:

webapps               -fstype=autofs autofs.wild

where autofs.wild could contain:
other-offset-submount             -fstype=autofs autofs.other-offsets
*          -timeo=30               server:/local/exports/&

and the map autofs.other-offsets is a subdirectory of lower level
mounts. Obviously you would need one of these for each sub directory of
mounts.

Solved it this way.  Thanks a lot
Frank
--
To unsubscribe from this list: send the line "unsubscribe autofs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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