Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85459 - glibc test suite broken if rootfs is reiserfs mounted noatime
Summary: glibc test suite broken if rootfs is reiserfs mounted noatime
Status: RESOLVED DUPLICATE of bug 85460
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-15 22:42 UTC by ferret
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***