[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 20050214:NetCDF 3.6.0 Bug
- Subject: Re: 20050214:NetCDF 3.6.0 Bug
- Date: Tue, 15 Feb 2005 15:42:24 -0700
Kevin,
I wrote:
> ... I'm testing a fix that doesn't require the user to know
> know whether a file is classic or 64-bit offset variant, but preserves
> whatever variant the file had when opened. It won't hurt to OR in the
> NC_64BIT_OFFSET on open, but it won't be required.
My test seemed to work fine. Here's a context diff for the fix,
just adding the line
fSet(ncp->flags, NC_64BIT_OFFSET);
after line 1319 of libsrc/v1hpg.c, so in context it now reads:
if (magic[sizeof(ncmagic)-1] == 0x1) {
gs.version = 1;
} else if (magic[sizeof(ncmagic)-1] == 0x2) {
gs.version = 2;
fSet(ncp->flags, NC_64BIT_OFFSET);
If it's convenient, I'd appreciate your testing this instead of your
patch, to see if it works for you without the necessity of adding
NC_64BIT_OFFSET to your open calls. Thanks!
--Russ