Jeremy Fitzhardinge wrote:
> 
> On 02-Aug-99 Simon Burley wrote:
> >
> > I'm trying to set up autofs' capability to do submounts. Is there any
> > way to mount hosts under /hosts, and under the hostname, the exported
> > filesystems, eg

<snip>

> Have a look at http://www.goop.org/~jeremy/autofs.  I've done some patches
> which allows a /net-style directory to mount all filesystems being exported
> from a machine.  Well, that's the simple case - all the decision-making is done
> in a shell-script, so you can easily tailor it to your needs.
> 
> For example, I have /etc/auto.net as a shell script:
> 
> ---
> #!/bin/sh
> 
> # Look at what a host is exporting to determine what we can mount.
> # This is wildly simplistic - no attempt is made to see whether we can mount
> # each filesystem, or whether its RO or RW.  For the future...
> 
> key="$1"
> opts="-fstype=nfs,hard,intr,nodev,nosuid"
> 
> showmount --no-headers -e "$key" | sort | \
>         sed -e "s|^\([^      ]*\).*|$key\1 $opts $key:\1|"

OK. I've patched the kernel and compiled and installed the daemon.
Where does showmount come from?

Thanks
Simon
-- 
/* "C makes it easy to shoot yourself in the foot.  C++ makes */
/* it harder, but when you do, it blows away your whole leg." */
/*   -- Bjarne Stroustrup                                     */
/* Simon Burley, Double Negative Ltd, London.                 */

Reply via email to