Unable to build uClibc with _FILE_OFFSET_BITS=64

mail-an-mw123 at gmx.de mail-an-mw123 at gmx.de
Thu Jan 17 15:09:52 UTC 2013


> hm. can you show me the relevant part of
> $ strace -v -o /tmp/ls0.txt ls -1 /mnt/test
I've attached both files mount.strace as well as ls-l.strace.

> 
> Iff you have a high st_ino, can you try to mount with noserverino to
> workaround it?
That is what I already did - thanks anyway.

> To your other question...
> >>> The root cause I am searching for is related to an error of fstat on a
> >>> CIFS mounted folder using the option <nounix>. This option causes the
> kernel
> >>> to map the server inodes to large values (> 32 bit). Thus the fstat
> call
> >>> returns with a <Value too large for defined data type> error. An <ls>
> call on
> >>> that folder shows the following syscalls:
> 
> >>> open("/mnt/test/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
> >>> fstat(3, 0x7fe6ebb8)                    = -1 EOVERFLOW (Value too
> large
> >>> for defined data type)
> 
> >>> Assumed that ls calls opendir, then the 64 bit handling of fstat is
> >>> missing, right?
> 
> ... it could be that the conversion is going wrong, yes.
> thanks,
At the moment I am using the attached patch to fix it at my side. The file ls-l-fixed.strace contains the log of the ls -l call using the patch.

BR
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mount.strace
Type: application/octet-stream
Size: 9811 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20130117/560d7692/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ls-l.strace
Type: application/octet-stream
Size: 4344 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20130117/560d7692/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opendir.c.patch
Type: text/x-patch
Size: 1354 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20130117/560d7692/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ls-l-fixed.strace
Type: application/octet-stream
Size: 5140 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20130117/560d7692/attachment-0005.obj>


More information about the uClibc mailing list