From d85cb89ebae36cc5f6556d710e3e624a3fc604d6 Mon Sep 17 00:00:00 2001
From: pravins <pravins>
Date: Tue, 13 May 2008 05:13:53 +0000
Subject: [PATCH] b=14340 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 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lustre/include/lustre/lustre_idl.h b/lustre/include/lustre/lustre_idl.h
index f8061b920e..72c1999fd3 100644
--- a/lustre/include/lustre/lustre_idl.h
+++ b/lustre/include/lustre/lustre_idl.h
@@ -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];
 };
-- 
GitLab