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

Bug#699321: Acknowledgement (libc6: statvfs() calling stat() unnecessarily (2.6.36))



Here's the strace output I get with my patched libc6 on
my test program:

statfs("/mnt", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=37927273, f_bfree=3472739, f_bavail=1546144, f_files=9633792, f_ffree=7644549, f_fsid={-660744975, 649746596}, f_namelen=255, f_frsize=4096}) = 0
stat("/mnt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
write(2, "f_flags: 0x420\n", 15f_flags: 0x420
)        = 15
exit_group(0)

Note there's no opening of mtab or /proc/mounts as would be expected
from calling __statvfs_getflags(), either.


Reply to: