statvfs64 does not work as expected

Jakub Jelinek jakub@redhat.com
Sat Apr 3 12:56:00 GMT 2004


On Fri, Apr 02, 2004 at 11:50:37PM -0800, Ulrich Drepper wrote:
> Thorsten Kukuk wrote:
> 
> > Attached is a try from me to fix this.
> 
> It's not correct.  There are several problems.  Like not fixing
> fstatvfs64, not taking into account the fstatfs64 is guaranteed.  I've
> checked in a patch which should fix all these things.

I believe duplicating full internal_statvfs is unnecessary, more than 50% of
that routine is about computing buf->f_flag from name, st and fsbuf->f_type.
So I think we should move that code into a separate routine, which would
be called by both internal_statvfs{,64}.
And we need linux/wordsize-64/internal_statvfs64.c as empty file to avoid
bloating 64-bit arches.

	Jakub



More information about the Libc-alpha mailing list