Re: Difference between '/net -hosts' and '/net /etc/auto.net' auto.master entries?

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

 



On Tue, 2014-09-09 at 15:16 -0400, Rufe Glick wrote:
> Hello,
> 
> In my /etc/auto.master file I add the following two entries:
>     /net   -hosts
>     /net2  /etc/auto.net
> 
> After starting the autofs service I can now access the same remote NFS
> share under either of these paths:
>     ls  /net/192.168.0.50/
>     ls  /net2/192.168.0.50/
> 
> Is there any difference between those two ways of achieving the same
> result? Is -hosts option just a shortcut for the auto.net script?

The result is the same but the later is a script that depends on
external programs while the former doesn't. And the script doesn't allow
the use of the expected standard syntax, the "-hosts" option. The script
hasn't been removed because people may be using it and because it's an
example of functional program map.

Ian

--
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