From thomas@cuivre.fr.eu.org  Mon Mar  5 14:21:07 2007
Return-Path: <thomas@cuivre.fr.eu.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 7BBC716A403
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  5 Mar 2007 14:21:07 +0000 (UTC)
	(envelope-from thomas@cuivre.fr.eu.org)
Received: from melamine.cuivre.fr.eu.org (melusine.cuivre.fr.eu.org [82.225.155.84])
	by mx1.freebsd.org (Postfix) with ESMTP id 40F3D13C461
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  5 Mar 2007 14:21:07 +0000 (UTC)
	(envelope-from thomas@cuivre.fr.eu.org)
Received: by melamine.cuivre.fr.eu.org (Postfix, from userid 1000)
	id 35D575C19A; Mon,  5 Mar 2007 15:21:06 +0100 (CET)
Message-Id: <20070305142106.35D575C19A@melamine.cuivre.fr.eu.org>
Date: Mon,  5 Mar 2007 15:21:06 +0100 (CET)
From: Thomas Quinot <thomas@cuivre.fr.eu.org>
Reply-To: Thomas Quinot <thomas@cuivre.fr.eu.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: mount_nfs: support fg and hard options as no-ops
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         109924
>Category:       bin
>Synopsis:       mount_nfs: support fg and hard options as no-ops
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    thomas
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 05 14:30:04 GMT 2007
>Closed-Date:    Mon Mar 05 14:48:55 GMT 2007
>Last-Modified:  Tue Mar 13 20:30:04 GMT 2007
>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:
State-Changed-From-To: open->closed 
State-Changed-By: thomas 
State-Changed-When: Mon Mar 5 14:48:13 UTC 2007 
State-Changed-Why:  
Patch committed. 


Responsible-Changed-From-To: freebsd-bugs->thomas 
Responsible-Changed-By: thomas 
Responsible-Changed-When: Mon Mar 5 14:48:13 UTC 2007 
Responsible-Changed-Why:  
Patch committed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109924 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/109924: commit references a PR
Date: Mon,  5 Mar 2007 14:48:05 +0000 (UTC)

 thomas      2007-03-05 14:47:54 UTC
 
   FreeBSD src repository
 
   Modified files:
     sbin/mount_nfs       mount_nfs.8 mount_nfs.c 
   Log:
   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
   
   Revision  Changes    Path
   1.47      +6 -0      src/sbin/mount_nfs/mount_nfs.8
   1.72      +2 -0      src/sbin/mount_nfs/mount_nfs.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/109924: commit references a PR
Date: Tue, 13 Mar 2007 20:28:34 +0000 (UTC)

 thomas      2007-03-13 20:28:24 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_6)
     sbin/mount_nfs       mount_nfs.8 mount_nfs.c 
   Log:
   MFC mount_nfs.c rev. 1.72, mount_nfs.8 rev. 1.47:
   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
   
   Revision  Changes    Path
   1.43.2.2  +6 -0      src/sbin/mount_nfs/mount_nfs.8
   1.65.2.1  +2 -0      src/sbin/mount_nfs/mount_nfs.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
