From owner-freebsd-bugs@FreeBSD.ORG Mon Mar 5 14:30:05 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AF8D116A404 for ; Mon, 5 Mar 2007 14:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 9071313C4B4 for ; Mon, 5 Mar 2007 14:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l25EU5tx053944 for ; Mon, 5 Mar 2007 14:30:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l25EU5NG053943; Mon, 5 Mar 2007 14:30:05 GMT (envelope-from gnats) Resent-Date: Mon, 5 Mar 2007 14:30:05 GMT Resent-Message-Id: <200703051430.l25EU5NG053943@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Thomas Quinot Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7BBC716A403 for ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: bin/109924: mount_nfs: support bg and hard options as no-ops X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Thomas Quinot List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Mar 2007 14:30:05 -0000 >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: