LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   NFSv4 + autofs (https://www.linuxquestions.org/questions/linux-networking-3/nfsv4-autofs-499138/)

technomancer 11-06-2006 10:59 AM

NFSv4 + autofs
 
The default configuration in debian's (and *ubuntu) auto.net works nicely to scrape the output of showmount into an nfs3 suitable autofs mapping. Has anyone been bothered to put together an nfs4 version of the same?

Ideas?

technomancer 11-06-2006 11:10 AM

I was being retarded.

Code:

#!/bin/bash

# /etc/auto.net4
# This file must be executable to work! chmod 755!
# This is very simple


opts="-fstype=nfs4,nodev,nosuid,nonstrict,nodev,sync,_netdev,proto=tcp,retry=10,
rsize=32768,wsize=32768,hard,intr"

# Just echo options, a hostname and the export root.
echo "${opts} ${1}:/"

Now, this is either deceptively simple because it /is/ or because I've missed something that's going to lead to breakage?


All times are GMT -5. The time now is 09:28 PM.