James Edward Gray II wrote:

> On Wednesday, September 10, 2003, at 10:04  PM, sum wrote:
> 
>> Dear all
>>
>> I found that stat command problems, when the file is over 2GB , it
>> cannot return any result when i use stat command. The following are
>> the information:
> 
> <snip>
> 
>> My machine is using redhat 7.3 and the perl version is
>> perl-5.6.1-34.99.6
>>
>> Anyone has ideas on it ?  is it bug on this perl version ?  Please
>> give me some advise , Thanks a lot
> 
> I'm not sure, but my gut reaction is that this sounds like an OS
> problem.  Does anyone know if Red Hat 7.3 can handle files over 2 Gigs?

RH 7.3 is shipped with at least kernel 2.4.18-14 which supports LFS (Large 
File Support). if you do:

[panda]$ uname -r
2.4.18-14

you should see something similiar to the above. it's still possible to 
rebuild your kernel to have LFS support even if the kernel is < 2.4.x but 
that's another story. if your kernel does not support LFS, Perl won't be 
able to support it. if your kernel does support LFS, chances are Perl will 
also support LFS. you can check to see if your Perl was built to support 
LFS by:

[panda]$ perl -V | grep uselargefiles

and if you see something like 'uselargefiles=define' then you are in good 
shape. finally, you also want to check if perl is built to use the LFS API:

[panda]$ perl -V | grep OFFSET_BIT

-D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64

it's highly unlikely that perl is not using the LFS API if it's capable of 
handling large file. RH 7.3 and Perl that came with it, should support LFS 
right out of the box.

david
-- 
$_=q,015001450154015401570040016701570162015401440041,,*,=*|=*_,split+local$";
map{~$_&1&&{$,<<=1,[EMAIL PROTECTED]||3])=>~}}0..s~.~~g-1;*_=*#,

goto=>print+eval

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to