-27 MB used on ext2?

George (greerga@nidhogg.ham.muohio.edu)
Fri, 25 Sep 1998 17:19:35 -0400 (EDT)


Let's try this again. :)

Linux 2.1.122 #146 SMP Sat Sep 19 06:13:55 EDT 1998
mke2fs 1.12, 9-Jul-98 for EXT2 FS 0.5b, 95/08/09

mke2fs -s1 /dev/hdc4

Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/hdc4 7285391 -27197 6935042 0% /mnt/4

mke2fs /dev/hc4

Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/hdc4 7285391 13 6907832 0% /mnt/4

strace on 'df' says:

statfs("/mnt/4", {f_type="EXT2_SUPER_MAGIC", f_bsize=1024,
f_blocks=7285391, f_bfree=7312588, f_files=1888256, f_ffree=1888245,
f_namelen=255}}) = 0

So it appears 'df' gets confused by the fact there are more blocks free
than there are total...

Simply accounting error?

-George

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/