From owner-freebsd-bugs Wed Sep 5 4:10: 8 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id DCF4437B406 for ; Wed, 5 Sep 2001 04:10:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f85BA1T02210; Wed, 5 Sep 2001 04:10:01 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A2B1837B401 for ; Wed, 5 Sep 2001 04:07:20 -0700 (PDT) Received: (from semenu@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f85B7Kp01795; Wed, 5 Sep 2001 04:07:20 -0700 (PDT) (envelope-from semenu) Message-Id: <200109051107.f85B7Kp01795@freefall.freebsd.org> Date: Wed, 5 Sep 2001 04:07:20 -0700 (PDT) From: Reply-To: semenu@FreeBSD.org To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/30334: mount_nfs ignores acregmin, acregmax, axdirmin and acdirmax options Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 30334 >Category: bin >Synopsis: mount_nfs ignores acregmin, acregmax, axdirmin and acdirmax options >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Sep 05 04:10:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Semen A. Ustimenko >Release: FreeBSD 4.3-RELEASE i386 >Organization: >Environment: System: FreeBSD default.the.net 4.3-RELEASE FreeBSD 4.3-RELEASE #14: Mon Jul 30 20:31:05 GMT+6 2001 semen@default.the.net:/usr/src/sys/compile/DEFAULT i386 >Description: Setting any of ac(reg|dir)(min|max) options in mount_nfs command line wont take effect. This applies both to -current and -stable >How-To-Repeat: mount_nfs -o acregmin=0,acregmax=0,acdirmin=0,acdirmax=0 foo:/foodir /mnt Write simple test program that reads file upon pressing enter, and change the file on server between keypress. You will see stale data. Use tcpdump to see that no requests are sent, though they should be sent as attributes are always invalid. >Fix: Index: src/sbin/mount_nfs/mount_nfs.c =================================================================== RCS file: /home/ncvs/src/sbin/mount_nfs/mount_nfs.c,v retrieving revision 1.36.2.1 diff -u -r1.36.2.1 mount_nfs.c --- src/sbin/mount_nfs/mount_nfs.c 2000/06/11 05:21:36 1.36.2.1 +++ src/sbin/mount_nfs/mount_nfs.c 2001/09/05 11:01:44 @@ -231,6 +231,10 @@ F(RESVPORT); F(NQNFS); F(SOFT); + F(ACREGMIN); + F(ACREGMAX); + F(ACDIRMIN); + F(ACDIRMAX); #undef F #undef F2 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message