Sorry if this is the wrong place for this.  I was trying to install JFS on
a clarkconnect server, which is based on RHEL4.  I got a source RPM and
did a build, and it seemed to go okay.  However, I was unable to run
jfs_mkfs, which would complain about this:

The specified disk did not finish formatting.

After much experimenting, I discovered that I couldn't create a filesystem
larger than 2GB or so.  After many printfs added here and there, I
discovered it was an error from fseeko due to EINVAL (negative offset). 
But, the disk_offset parameter to the routine in question is a 64-bit
integer.  I looked at the configure script and tried a hunch.  Here is the
output from the configure script:

checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGEFILE_SOURCE value needed for large files... no

I changed _LARGEFILE_SOURCE to 1 in config.h, rebuilt and tried again, and
it works.  I don't know enough about this to know why this is happening
(apparently, the script is wrong on RHEL4?)




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jfs-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jfs-discussion

Reply via email to