[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#220992: libc6: statfs.f_frsize incorrectly set with linux kernel 2.2



	Jeff Bailey wrote:

> Could you please check this with the glibc that's in unstable?  I don't
> have a 2.2 kernel to test this with.
> 
> Tks,
> Jeff Bailey

Yes I have the same problem with unstable (2.3.2.ds1-10)
I've come up with a simple testcase:

#include <sys/vfs.h>
main()
{
  struct statfs buf;
  statfs("/", &buf);
  printf("f_frsize=%d\n", buf.f_frsize);
}

The output on my system is:
f_frsize=-1072545588

strace reports the statfs call as such:
statfs("/", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=2403529, f_bfree=2397178, f_bavail=2275085, f_files=1221600, f_ffree=1214227, f_fsid={-1073742984, 514}, f_namelen=255, f_frsize=3222421708}) = 0

-- 
  Daniel



Reply to: