Subject: bin/36717: df -i shows negative value in "ifree" column on a lfs partition
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <alexey@zhtw.org.ru>
List: netbsd-bugs
Date: 08/01/2007 08:00:01
>Number:         36717
>Category:       bin
>Synopsis:       df -i shows negative value in "ifree" column on a lfs partition
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 01 08:00:00 +0000 2007
>Originator:     Alexey Lebedev
>Release:        NetBSD 3.1
>Organization:
Moscow Aviation Institute
>Environment:
NetBSD kl.zhtw.org.ru 3.1 NetBSD 3.1 (GENERIC.MP) #0: Tue Oct 31 04:42:38 UTC 2006  builds@b0.netbsd.org:/home/builds/ab/netbsd-3-1-RELEASE/i386/200610302053Z-obj/home/builds/ab/netbsd-3-1-RELEASE/src/sys/arch/i386/compile/GENERIC.MP i386
>Description:
I'm using lfs on partition /usr and some time ago I noticed that daily reports contain wrong information about free inodes on this partition:

Checking subsystem status:

disks:
Filesystem    Size      Used     Avail Capacity  iused    ifree  %iused  Mounted on
/dev/wd0a     249M      22M      214M     9%     2416    60942     3%   /
/dev/wd0e     340G      42G      263G    13%   364254 -1772906582     0%   /usr
mfs:308        62M     6.0K       59M     0%       10    15860     0%   /tmp

>How-To-Repeat:
I think you can see it on any lfs partition but I'm not sure.
>Fix: