I think the problem that I am having is that I am getting a comparability
version of stat64. I was able to do a stat64 sys call and that gave me the
right answer. The large file compile time options may not really do anything
depending on how the libraries were builed. I suppect the system librires
I have are dong the old stat syscall and then using that information to fill in
the stat64 structures. Same for all the 64 bit file operations.
>hey Bill,
>
>On Aug 14, 12:25pm, William L Jones wrote:
>> Subject: How do you get stat64 to work?
>>
>> I have created file 8GB on a xfs file system. I cannot seem to get
>> stat64 to give the right size of the file. Any suggestions?
>>
>
>I think you need to at least #define _LARGEFILE64_SOURCE, which
>sets __USE_LARGEFILE64 - check out /usr/include/features.h
>
>For the XFS commands we #define _GNU_SOURCE which includes
>_LARGEFILE64_SOURCE but gives other stuff we need too,
>like getsubopts, and so on.
>
>cheers.
>
>Nathan
|