From: Martin Mares Date: Sat, 11 Dec 2004 13:22:50 +0000 (+0000) Subject: Resurrected CONFIG_LARGE_DB. X-Git-Tag: holmes-import~846 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=082f94e92eb6286d9173105c6a02341c014e8fb0;p=libucw.git Resurrected CONFIG_LARGE_DB. Large database format and LFS really should be different switches -- small DB combined with LFS gives a 4GB limit, small with no LFS gives 2GB limit. CONFIG_LFS is now always on (it's supported by all current Linux libc's and the performance penalty for using 64-bit sh_off_t is negligible), CONFIG_LARGE_DB is controlled by config.mk. --- diff --git a/lib/config.h b/lib/config.h index c601cd28..7000d63a 100644 --- a/lib/config.h +++ b/lib/config.h @@ -34,7 +34,7 @@ typedef unsigned int sh_time_t; /* Timestamp */ #define NULL (void *)0 #endif -#ifdef CONFIG_LARGE_FILES /* File positions */ +#ifdef CONFIG_LFS /* File positions */ typedef s64 sh_off_t; #else typedef s32 sh_off_t; diff --git a/lib/lfs.h b/lib/lfs.h index fcd64d76..5a9ab5d2 100644 --- a/lib/lfs.h +++ b/lib/lfs.h @@ -13,7 +13,7 @@ #include #include -#ifdef CONFIG_LARGE_FILES +#ifdef CONFIG_LFS #define sh_open open64 #define sh_seek lseek64 @@ -24,7 +24,7 @@ #define sh_pread pread64 #define sh_pwrite pwrite64 -#else /* !CONFIG_LARGE_FILES */ +#else /* !CONFIG_LFS */ #define sh_open open #define sh_seek(f,o,w) lseek(f,o,w) @@ -33,7 +33,7 @@ #define sh_pread pread #define sh_pwrite pwrite -#endif /* !CONFIG_LARGE_FILES */ +#endif /* !CONFIG_LFS */ #define HAVE_PREAD