Subject: kern/21279: more FFS2 bugs?
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dive@endersgame.net>
List: netbsd-bugs
Date: 04/23/2003 15:17:32
>Number:         21279
>Category:       kern
>Synopsis:       mount returns... interestingly invalid information
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 23 15:18:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     dive
>Release:        NetBSD 1.6R
>Organization:
/~\ The ASCII
\ / Ribbon Campaign                   Sean Davis
 X  Against HTML                       aka dive
/ \ Email!
>Environment:
System: NetBSD eros 1.6R NetBSD 1.6R (EROS) #476: Thu Apr 17 13:59:50 EDT 2003 dive@eros:/sys/arch/i386/compile/EROS i386
Architecture: i386
Machine: i386
all partitions are FFS. FFS2 is not being used at all.
>Description:
mount returns invalid information re: mounted by, writes, etc.:

<dive@eros(/home/dive/cvs/kernel)> % mount
/dev/wd0a on / type ffs (local, mounted by 2048)
/dev/wd0e on /var type ffs (local, mounted by 2048)
/dev/wd0g on /usr type ffs (local, mounted by 2048)
/dev/wd0f on /tmp type ffs (local, mounted by 2048)
/dev/wd0h on /home type ffs (local, mounted by 2048)
/dev/wd0i on /media type ffs (local, mounted by 2048)
/dev/wd0j on /misc type ffs (local, mounted by 2048)
/dev/wd1a on /disk2 type ffs (local, mounted by 2048)
<dive@eros(/home/dive/cvs/kernel)> % mount -v
/dev/wd0a on / type ffs (local, root file system, mounted by 2048, writes: sync 1760540000 async 1050602539)
/dev/wd0e on /var type ffs (local, mounted by -1071105376, writes: sync -582447456 async -1072312589)
/dev/wd0g on /usr type ffs (local, mounted by 2048, writes: sync 1631720000 async 1051110478)
/dev/wd0f on /tmp type ffs (local, mounted by -1071105376, writes: sync -582447073 async -1072312589)
/dev/wd0h on /home type ffs (local, mounted by -1071105376, writes: sync -582447456 async -1072312589)
/dev/wd0i on /media type ffs (local, mounted by -1071105376, writes: sync -582447456 async -1072312589)
/dev/wd0j on /misc type ffs (local, mounted by 2048, writes: sync 1116440000 async 1051110798)
/dev/wd1a on /disk2 type ffs (local, mounted by 2048, writes: sync -730947296 async 1051110797)
<dive@eros(/home/dive/cvs/kernel)> % mount
/dev/wd0a on / type ffs (local)
/dev/wd0e on /var type ffs (local, mounted by -1071105376)
/dev/wd0g on /usr type ffs (local, mounted by 2048)
/dev/wd0f on /tmp type ffs (local, mounted by -1071105376)
/dev/wd0h on /home type ffs (local, mounted by -1071105376)
/dev/wd0i on /media type ffs (local, mounted by -1071105376)
/dev/wd0j on /misc type ffs (local, mounted by 2048)
/dev/wd1a on /disk2 type ffs (local, mounted by 2048)
<dive@eros(/home/dive/cvs/kernel)> % mount -v
/dev/wd0a on / type ffs (local, root file system, mounted by 2048, writes: sync 1760540000 async 1050602548)
/dev/wd0e on /var type ffs (local, mounted by -1071105376, writes: sync -582447456 async -1072312582)
/dev/wd0g on /usr type ffs (local, mounted by 2048, writes: sync 1631720000 async 1051110478)
/dev/wd0f on /tmp type ffs (local, mounted by -1071105376, writes: sync -582444513 async -1072312584)
/dev/wd0h on /home type ffs (local, mounted by 2048, writes: sync 199 async 1050602561)
/dev/wd0i on /media type ffs (local, mounted by -1071105376, writes: sync -582447456 async -1072312589)
/dev/wd0j on /misc type ffs (local, mounted by 2048, writes: sync 1975240000 async 1051110478)
/dev/wd1a on /disk2 type ffs (local, mounted by 2048, writes: sync 2104060000 async 1051110815)

I'm quite positive that my system has not been up long enough to have that many
writes to any partition, and the mounted-by data is apparently getting corrupted
by something.
>How-To-Repeat:
run mount, then mount -v...
>Fix:
unknown
>Release-Note:
>Audit-Trail:
>Unformatted:
 20030417