From: Derrick Brashear Date: Thu, 11 Jun 2009 20:40:29 +0000 (+0000) Subject: STABLE14-vnode-disk-object-name-hi-length-field-20090611 X-Git-Tag: openafs-stable-1_4_11pre2~9 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f2bd16ef0bc90a116b5df805c4dcce501a8204b3;p=packages%2Fo%2Fopenafs.git STABLE14-vnode-disk-object-name-hi-length-field-20090611 LICENSE IPL10 reserved6 is used for the high portion of the 64 bit length. make the structure reflect it. (cherry picked from commit a7f9ce9ce1b2608937c5c3ffc73a2de07abc5fb1) --- diff --git a/src/vol/vnode.h b/src/vol/vnode.h index 0bf724508..62aaf81c2 100644 --- a/src/vol/vnode.h +++ b/src/vol/vnode.h @@ -105,7 +105,7 @@ typedef struct VnodeDiskObject { * backup purposes */ afs_int32 group; /* unix group */ afs_int32 vn_ino_hi; /* high part of 64 bit inode. */ - bit32 reserved6; + bit32 vn_length_hi; /* high part of 64 bit length */ /* Missing: * archiving/migration * encryption key @@ -156,10 +156,10 @@ typedef struct Vnode { #define SIZEOF_SMALLVNODE (sizeof (struct Vnode)) #ifdef AFS_LARGEFILE_ENV -#define VN_GET_LEN(N, V) FillInt64(N, (V)->disk.reserved6, (V)->disk.length) -#define VNDISK_GET_LEN(N, V) FillInt64(N, (V)->reserved6, (V)->length) -#define VN_SET_LEN(V, N) SplitInt64(N, (V)->disk.reserved6, (V)->disk.length) -#define VNDISK_SET_LEN(V, N) SplitInt64(N, (V)->reserved6, (V)->length) +#define VN_GET_LEN(N, V) FillInt64(N, (V)->disk.vn_length_hi, (V)->disk.length) +#define VNDISK_GET_LEN(N, V) FillInt64(N, (V)->vn_length_hi, (V)->length) +#define VN_SET_LEN(V, N) SplitInt64(N, (V)->disk.vn_length_hi, (V)->disk.length) +#define VNDISK_SET_LEN(V, N) SplitInt64(N, (V)->vn_length_hi, (V)->length) #else /* !AFS_LARGEFILE_ENV */ #define VN_GET_LEN(N, V) (N) = (V)->disk.length; #define VNDISK_GET_LEN(N, V) (N) = (V)->length;