From owner-freebsd-bugs Sun Dec 17 05:00:05 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id FAA28018 for bugs-outgoing; Sun, 17 Dec 1995 05:00:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id FAA28012 Sun, 17 Dec 1995 05:00:02 -0800 (PST) Resent-Date: Sun, 17 Dec 1995 05:00:02 -0800 (PST) Resent-Message-Id: <199512171300.FAA28012@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, fn@pain.csrv.uidaho.edu Received: from pain.csrv.uidaho.edu (root@pain.csrv.uidaho.edu [129.101.114.109]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id EAA27715 for ; Sun, 17 Dec 1995 04:55:50 -0800 (PST) Received: (from fn@localhost) by pain.csrv.uidaho.edu (8.6.12/8.6.9) id EAA06657; Sun, 17 Dec 1995 04:55:48 -0800 Message-Id: <199512171255.EAA06657@pain.csrv.uidaho.edu> Date: Sun, 17 Dec 1995 04:55:48 -0800 From: Faried Nawaz Reply-To: fn@pain.csrv.uidaho.edu To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/899: /var/db/mountdtab not removed on bootup. Sender: owner-bugs@freebsd.org Precedence: bulk >Number: 899 >Category: bin >Synopsis: /var/db/mountdtab can contain useless/outdated info >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Dec 17 05:00:01 PST 1995 >Last-Modified: >Originator: Faried Nawaz >Organization: >Release: FreeBSD 2.2-CURRENT i386 >Environment: this problem's in 2.x, i think. i'm FreeBSD pain.csrv.uidaho.edu 2.2-CURRENT FreeBSD 2.2-CURRENT #0: Wed Dec 13 20:01:46 PST 1995 fn@pain.csrv.uidaho.edu:/disk1/src/sys/compile/pain i386 >Description: /var/db/mountdtab is not removed on bootup, and so hosts "appear" to be mounting drives when they aren't doing so. >How-To-Repeat: set up the nfs server stuff on host 'A', export a drive/directory to host 'B', mount host_a:/whatever on host 'B', unmount, reboot host 'A', wait for it to come back up type 'showmount host_a'. >Fix: --- /etc/rc~ Sun Dec 17 04:49:39 1995 +++ /etc/rc Sun Dec 17 04:49:52 1995 @@ -210,6 +210,7 @@ fi if [ "X${nfs_server}" = X"YES" -a -r /etc/exports ]; then + cp /dev/null /var/db/mountdtab echo -n ' mountd' if [ "X${pcnfsd}" = X"YES" ]; then mountd -n perhaps mountd should remove a client's entry from /var/db/mountdtab when the client umounts? >Audit-Trail: >Unformatted: