bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: find: .: Value too large for defined data type


From: Bob Proulx
Subject: Re: find: .: Value too large for defined data type
Date: Wed, 1 Dec 2004 19:23:53 -0700
User-agent: Mutt/1.5.6+20040907i

Tim Waugh wrote:
> With findutils-4.1.20 I've had a report of this error:
> 
> find: .: Value too large for defined data type

I have seen that error often for programs (not find but other random
programs) compiled without largefile support when accessing large
files.  'largefiles' being defined as files >2GB in size.  I feel
certain that must be a factor here.

> Here is the bug report:
> 
>   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=141167

The poster shows this on an NFS mounted filesystem.  Largefiles and
NFS together.  The double whammy!  So there are several possibilities.
One is that it is mounted with NFSpv2 which has no support for large
files.  In that case completely outside of the program it is not
possible to stat a largefile.  You need to have the system mounted
with NFSpv3 to get largefile support.  [A fun example is watching a
directory with ls as a file grows from just less than the 2GB limit to
just past the limit.]  The effect is that the file suddenly dissappears
from the directory.  Again, this is assuming NFSpv2 mounting of the
NFS mount.  Unfortunately I forget how to determine which protocol
version is used for any particular mount point.

Even with NFSpv3, programs still cannot stat the file successfully
unless they were compiled as largefile aware programs.  Can you verify
that find is largefile aware?  The following example works fine for me
for example.

  dd if=/dev/zero of=lgfile seek=5M count=1

  ls -lh lgfile
  -rw-r--r-- 1 rwp esl 2.5G Dec 1 19:15 lgfile

   34113 20 -rw-r--r-- 1 rwp esl 2684355072 Dec 1 19:15 lgfile

If that does not work for some reason you can always create a real
file of that size if you have the disk space for it.

Bob

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]