From: <ty...@va...> - 2000-12-19 18:15:56
|
Date: Tue, 19 Dec 2000 17:04:21 +0100 From: Stelian Pop <ste...@al...> - we forget about the -D_FILE_OFFSET_BITS=64, in both dump and e2fsprogs You can't just forget about FILE_OFFSET_BITS=64. On the other hand, it's fairly simple to simply pass O_LARGE to open(), and then set up a situation where you only try to call lseek64() if you need to seek to an offset larger than 32 bits. O_LARGE should be ignored on non-LFS systems, and if lseek64 returns ENOSYS, you know you're on a non-LFS system, and you can simply truncate the restore of the large file at that point, with a warning message. - Ted |