Re: "Untidy" output from df with virtual filesystems

From: Lawrence Manning (lawrence@aslak.demon.co.uk)
Date: Sun Mar 12 2000 - 14:21:53 EST


On Sun, 12 Mar 2000, Lars Marowsky-Bree wrote:

> My guess would be it is entirely a userspace issue - kernel returning -1 as it
> should in statfs (because those fields don't apply to these fs), df not
> parsing this reply correctly.

I just made a quick test prog using statfs.

You appear to be right, at least for /proc and /dev/pts. Both have a
f_bsize field of 1024 and f_blocks of -1, so df shouldn't be showing
those. /var/shm, though, has f_bsize of 4096 and f_blocks of 1048576
(thus the 4gig figure from df). So maybe both is abit wrong ;)

Lawrence

-
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/



This archive was generated by hypermail 2b29 : Wed Mar 15 2000 - 21:00:22 EST