Subject: kern/36646: df -i shows a negative (random?) number of free inodes
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <cheusov@tut.by>
List: netbsd-bugs
Date: 07/14/2007 07:30:00
>Number:         36646
>Category:       kern
>Synopsis:       /bin/df -i shows negative number of free inodes for LFS
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 14 07:30:00 +0000 2007
>Originator:     cheusov@tut.by
>Release:        NetBSD 4.0_BETA2
>Organization:
Best regards, Aleksey Cheusov.
>Environment:
System: NetBSD chen.chizhovka.net 4.0_BETA2 NetBSD 4.0_BETA2 (GENERIC) #20: Wed Jun 20 19:58:12 EEST 2007 cheusov@chen.chizhovka.net:/srv/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
/bin/df -i shows a negative number of free inodes
for LFS partitions like this

0 ~>/bin/df -i /mnt/raid0      
Filesystem  512-blocks      Used     Avail Capacity  iused    ifree  %iused  Mounted on
/dev/raid0d 1053558302 107371030 840828860    11%       85 -457298453     0%   /mnt/raid0
0 ~>


More over, ifree field seems too big for other LFS partitions
0 ~>/bin/df -i /srv           
Filesystem  512-blocks      Used     Avail Capacity  iused    ifree  %iused  Mounted on
/dev/wd1f    136446146  40489500  82309088    32%   634424 391666168     0%   /srv
0 ~>

>Fix:

Unknown