summaryrefslogtreecommitdiffstats
path: root/sbin/mount_nfs
diff options
context:
space:
mode:
authorthomas <thomas@FreeBSD.org>2007-03-05 14:47:54 +0000
committerthomas <thomas@FreeBSD.org>2007-03-05 14:47:54 +0000
commit812e0499f307ea6e2feab47899477634f2e2c953 (patch)
treec6c50ed60283fe79a957f8d69645f3c846fe9954 /sbin/mount_nfs
parente97dc5692ff6627bf48c3143d66dbd60bf75821d (diff)
downloadFreeBSD-src-812e0499f307ea6e2feab47899477634f2e2c953.zip
FreeBSD-src-812e0499f307ea6e2feab47899477634f2e2c953.tar.gz
Add "fg" option as antonym to "bg"; add "hard" option as antonym to "soft".
This is for better compatibility with other environments (Linux, Solaris, HP-UX, AIX and Tru64 support these options). PR: bin/109924 MFC after: 1 week
Diffstat (limited to 'sbin/mount_nfs')
-rw-r--r--sbin/mount_nfs/mount_nfs.86
-rw-r--r--sbin/mount_nfs/mount_nfs.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/sbin/mount_nfs/mount_nfs.8 b/sbin/mount_nfs/mount_nfs.8
index 6252a5d..93ea3c2 100644
--- a/sbin/mount_nfs/mount_nfs.8
+++ b/sbin/mount_nfs/mount_nfs.8
@@ -246,6 +246,9 @@ compatibility with historic versions of
.It Cm bg
Same as
.Fl b .
+.It Cm fg
+Same as not specifying
+.Fl b .
.It Cm conn
Same as not specifying
.Fl c .
@@ -276,6 +279,9 @@ Same as
.It Cm soft
Same as
.Fl s .
+.It Cm hard
+Same as not specifying
+.Fl s .
.It Cm tcp
Same as
.Fl T .
diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c
index ad1e6d4..44d45e8 100644
--- a/sbin/mount_nfs/mount_nfs.c
+++ b/sbin/mount_nfs/mount_nfs.c
@@ -128,6 +128,7 @@ struct mntopt mopts[] = {
MOPT_UPDATE,
MOPT_ASYNC,
{ "bg", 0, ALTF_BG, 1 },
+ { "fg", 1, ALTF_BG, 1 },
{ "conn", 1, ALTF_NOCONN, 1 },
{ "dumbtimer", 0, ALTF_DUMBTIMR, 1 },
{ "intr", 0, ALTF_INTR, 1 },
@@ -136,6 +137,7 @@ struct mntopt mopts[] = {
{ "mntudp", 0, ALTF_MNTUDP, 1 },
{ "resvport", 0, ALTF_RESVPORT, 1 },
{ "soft", 0, ALTF_SOFT, 1 },
+ { "hard", 1, ALTF_SOFT, 1 },
{ "tcp", 0, ALTF_TCP, 1 },
{ "port=", 0, ALTF_PORT, 1 },
{ "nfsv2", 0, ALTF_NFSV2, 1 },
OpenPOWER on IntegriCloud