This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
statvfs64 does not work as expected
- From: Thorsten Kukuk <kukuk at suse dot de>
- To: libc-alpha at sources dot redhat dot com
- Date: Tue, 23 Mar 2004 10:12:04 +0100
- Subject: statvfs64 does not work as expected
- Organization: SuSE Linux AG, Nuernberg, Germany
Hi,
if you have very large filesystems, compiles your program with large
file support and uses statvfs, statvfs will fail on 32bit systems.
The reason is, that statvfs64 calls statvfs, which calls statfs,
which will return with a EOVERFLOW error.
What would be the right way to fix this? I think there should not
be a statfs call from a statvfs64 function, but statfs64.
Thanks,
Thorsten
--
Thorsten Kukuk http://www.suse.de/~kukuk/ kukuk@suse.de
SuSE Linux AG Maxfeldstr. 5 D-90409 Nuernberg
--------------------------------------------------------------------
Key fingerprint = A368 676B 5E1B 3E46 CFCE 2D97 F8FD 4E23 56C6 FB4B