You are right.

Please use 64 bit gcc, or just comment out the kernel version check and
truncate the offsetInFile to int, if your file is not too large.

Sorry for the japanese comment in code and web pages.
I hear Hitachi is preparing web pages written in English.
I will mail an announcement to this list when it is ready. (After lawyer's review)
Here is the translation.

>#ifndef __s390x__
>    // gcc cannot do 64 bit division on 32 bit arch machine. see fs/ntfs/util.c
>#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,5)
>#error FIXME 64 division on 32 arch.
>#else
>    /* if we are in 2.2.16 kernel, file size itself cannot be that large. */
>    ASSERT(offsetInFile < 4294967295U);
>    *tt = (unsigned short) ((int)(offsetInFile) / bytesInATrackUsedByOs);
>    residue = (int)((int)(offsetInFile) % bytesInATrackUsedByOs);
>#endif /* kernel 2.4.5 */

--
[EMAIL PROTECTED]
Motohiro Kanda, Hitachi Ltd. Japan

Reply via email to