Re: AMBER: large file for carnal

From: Bill Ross <ross.cgl.ucsf.edu>
Date: Tue, 4 Nov 2003 12:19:19 -0800 (PST)

> > mdpme4_g.mdcrd: sys err Value too large for defined data type
> > ... Linux ...
>
> There is probably some sort of extended (64-bit) file system
> involved. In amber/src/carnal/util.c:
>
> if (stat(path, &sbuf) == -1) {
>
> The call to 'stat()' should probably be something like 'stat_64()'
> for your machine:
>
> % man stat
>
> to see if such a call exists.

Probably this would also need to be changed:

        struct stat sbuf;

It appears that linux uses stat64 for this - see /usr/include/sys/stat.h
There are multiple places in util.c where stat() might become stat64()
and 'struct stat' 'struct stat64'.

I think the direction these days is to "clean up" this feature of operating
systems, where different stat() calls are not used.

Bill Ross

-----------------------------------------------------------------------
The AMBER Mail Reflector
To post, send mail to amber.scripps.edu
To unsubscribe, send "unsubscribe amber" to majordomo.scripps.edu
Received on Wed Nov 05 2003 - 13:53:03 PST
Custom Search