mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-27 18:34:22 +03:00
Fix 32-bit MAXOFFSET_T definition
Having MAXOFFSET_T defined to 0x7fffffffl was artificially limiting the maximum file size on 32-bit systems. In reality MAXOFFSET_T is used when working with 'long long' types and as such we now define it as LLONG_MAX. This resolves the 2GB file size limit for files and additionally allows zvols greater than 2GB on 32-bit systems. Closes #136 Closes #81
This commit is contained in:
parent
e2448b0e62
commit
a1cc0b3290
@ -47,13 +47,8 @@
|
|||||||
#define DEV_BSIZE 512
|
#define DEV_BSIZE 512
|
||||||
#define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */
|
#define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */
|
||||||
|
|
||||||
#define MAXNAMELEN 256
|
#define MAXNAMELEN 256
|
||||||
|
#define MAXOFFSET_T LLONG_MAX
|
||||||
#ifdef _LP64
|
|
||||||
#define MAXOFFSET_T 0x7fffffffffffffffl
|
|
||||||
#else
|
|
||||||
#define MAXOFFSET_T 0x7fffffffl
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define UID_NOBODY 60001 /* user ID no body */
|
#define UID_NOBODY 60001 /* user ID no body */
|
||||||
#define GID_NOBODY UID_NOBODY
|
#define GID_NOBODY UID_NOBODY
|
||||||
|
Loading…
Reference in New Issue
Block a user