Date: Mon, 5 Mar 2007 15:21:06 +0100 (CET) From: Thomas Quinot <thomas@cuivre.fr.eu.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/109924: mount_nfs: support bg and hard options as no-ops Message-ID: <20070305142106.35D575C19A@melamine.cuivre.fr.eu.org> Resent-Message-ID: <200703051430.l25EU5NG053943@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 109924 >Category: bin >Synopsis: mount_nfs: support bg and hard options as no-ops >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Mar 05 14:30:04 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Thomas Quinot >Release: FreeBSD 6.1-RC i386 >Organization: >Environment: System: FreeBSD melamine.cuivre.fr.eu.org 6.1-RC FreeBSD 6.1-RC #0: Thu May 4 13:21:21 CEST 2006 thomas@melamine.cuivre.fr.eu.org:/space/build/obj/space/build/src/RELENG_6/sys/MELAMINE i386 >Description: For compatibility with other *NIX systems it would be nice to support NFS mount options "hard" and "fg" (which correspond to default operations). At least Linux, Solaris, HP-UX, AIX and Tru64 support these options. >How-To-Repeat: mount -t nfs -o fg,hard host:/fs /mnt should have the same effect as: mount -t nfs host:/fs /mnt >Fix: Index: mount_nfs.8 =================================================================== RCS file: /space/mirror/ncvs/src/sbin/mount_nfs/mount_nfs.8,v retrieving revision 1.46 diff -u -r1.46 mount_nfs.8 --- mount_nfs.8 23 Jan 2007 07:17:10 -0000 1.46 +++ mount_nfs.8 5 Mar 2007 13:56:05 -0000 @@ -246,6 +246,9 @@ .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 @@ .It Cm soft Same as .Fl s . +.It Cm hard +Same as not specifying +.Fl s . .It Cm tcp Same as .Fl T . Index: mount_nfs.c =================================================================== RCS file: /space/mirror/ncvs/src/sbin/mount_nfs/mount_nfs.c,v retrieving revision 1.71 diff -u -r1.71 mount_nfs.c --- mount_nfs.c 23 Jan 2007 07:17:10 -0000 1.71 +++ mount_nfs.c 5 Mar 2007 13:54:59 -0000 @@ -128,6 +128,7 @@ 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 @@ { "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 }, >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070305142106.35D575C19A>