Whamcloud - gitweb
b=14340
authorpravins <pravins>
Tue, 13 May 2008 05:13:53 +0000 (05:13 +0000)
committerpravins <pravins>
Tue, 13 May 2008 05:13:53 +0000 (05:13 +0000)
i=h.huang
i=nikita.danilov

lu_dirent structure was inconsistent after lu_dirent->lde_hash
element extension to 64 bit change patch.
size of structure is different on 32 and 64 bit platform.
patch fixes that bug.

lustre/include/lustre/lustre_idl.h

index f8061b9..72c1999 100644 (file)
@@ -354,6 +354,7 @@ struct lu_dirent {
         __u64         lde_hash;
         __u16         lde_reclen;
         __u16         lde_namelen;
+        __u32         lde_pad0;
         char          lde_name[0];
 };
 
@@ -361,6 +362,7 @@ struct lu_dirpage {
         __u64            ldp_hash_start;
         __u64            ldp_hash_end;
         __u16            ldp_flags;
+        __u16            ldp_pad;
         __u32            ldp_pad0;
         struct lu_dirent ldp_entries[0];
 };