statvfs suggestion
Ulrich Drepper
drepper@redhat.com
Wed Sep 17 00:51:00 GMT 2003
Jim Meyering wrote:
> What do you think about changing internal_statvfs.c so that it first
> reads/saves all entries from /proc/mounts without stat'ing each
> corresponding directory? Then it can stop if any mount point matches
> the name of the file.
This really is no solution. The name passed to statvfs need not be the
actual mount point. And what about fstatvfs where we don't have a name?
I added some code which cuts down on the number of stats by comparing
another value we know must match: the filesystem name.
While doing this, though, I found that adding additional tests for the
name comparison isn't any more work so I added this as well. It's no
solution, but it might help in one situation or another. The result is
in CVS.
--
--------------. ,-. 444 Castro Street
Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
Red Hat `--' drepper at redhat.com `---------------------------
More information about the Libc-hacker
mailing list