statfs and reiserfs

jd@epcnet.de
Thu, 29 Nov 2001 00:40:27


Hi,

after a call of statfs() on my kernel-2.4.8, reiserfs returns for the fields f_files and f_ffree in the struct statfs values of -1.

Other filesystems return 0 for unsupported fields in the struct statfs, e.g. smbfs.

Some manpages say "Fields that are undefined for a particular file system are set to -1" (e.g. NetBSD1.4.3A from May24,1995), other say "Fields that are undefined for a particular file system are set to 0" (latest man pages from LDP)

Now. What's right? who's wrong? who's right?

Greetings

Jochen Dolze

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