Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 85459

Summary: glibc test suite broken if rootfs is reiserfs mounted noatime
Product: Gentoo Linux Reporter: ferret <ferret-bgo>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED DUPLICATE    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description ferret 2005-03-15 22:42:56 UTC
Reproducing:
1. mount your rootfs with -t reiserfs

This is probably true for more systems than you'd think, since it's the default for the handbook.

glibc does a test to see if atimes are enabled (in libio/tst-atime.c).  It first tries to check if noatime is set as a mount option, which is clever since the test is guaranteed to fail when noatime is on.  What isn't clever is that it uses statvfs(2) to do this, despite the fact that the man page mentions that any of the given values can be undefined.

I have a program that can print this struct, available here:
http://linux.ferret.vze.com/statvfs-tester.c
For a fs with noatime enabled, sv.f_flag should bitwise OR with 1024 (i.e. the tenth bit from the right should be 1)

Sugested fix: no idea.  It isn't a bug in reiserfs, really, since the amn page says populating the struct isn't necessary, but it would be nice for reiserfs to do this.  So glibc's test suite is slightly broken, perhaps it needs to display a warning and pass the test if sv.f_flag == 0, or maybe it needs to find out by some other method if the filesystem is mounted with noatime option.
Comment 1 ferret 2005-03-16 00:55:28 UTC
this is a dup of bug 85460, since I'm not used to the silly input routines in
the new elinks yet.

*** This bug has been marked as a duplicate of 85460 ***