[edited version from post on zfs-discuss]

> From: Nicolas Williams <Nicolas.Williams at sun.com>
>
> Attached is an executable automount map that emulates the -hosts  
> special
> map, except that automountd updates executable automount map entries
> much more often than -hosts ones (not at all).
>
> So now I can see exported filesystems show up or disappear in
> /nfs/<servername>/... dynamically.
>
> Only problem: automountd(1M) limits map entries to 4095 characters (so
> this doesn't work for a system with a lot of exports).
>
> This crappy limit comes from $SRC/cmd/fs.d/autofs/automount.h:
>
> #define LINESZ          4096
>
> So, you can put this in your /etc/auto_master:
>
> /nfs          auto_nfs   -nosuid,nobrowse
>
> And the attached script in /etc/auto_nfs (don't forget to chmod +x).
>
> Cheers,
>
> Nico
> -- 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: auto_nfs.sh
Type: application/octet-stream
Size: 311 bytes
Desc: not available
URL: 
<http://mail.opensolaris.org/pipermail/nfs-discuss/attachments/20060629/bb4a489f/attachment.obj>
-------------- next part --------------


Reply via email to