From 4604f89aec98f17584935318ecc3e6f6a9bc2304 Mon Sep 17 00:00:00 2001
From: shadow <shadow>
Date: Tue, 22 Apr 2008 11:42:40 +0000
Subject: [PATCH] not swab ost objects for directory because it's not exist.
 b=14856 i=green i=johan

---
 lustre/ChangeLog   | 6 ++++++
 lustre/llite/dir.c | 1 -
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/lustre/ChangeLog b/lustre/ChangeLog
index 6daa824652..253891c8da 100644
--- a/lustre/ChangeLog
+++ b/lustre/ChangeLog
@@ -13,6 +13,12 @@ tbd  Sun Microsystems, Inc.
        * RHEL 4 and RHEL 5/SLES 10 clients behaves differently on 'cd' to a
         removed cwd "./" (refer to Bugzilla 14399).
 
+Severity   : minor
+Bugzilla   : 14856
+Frequency  : on ppc only
+Description: not convert ost objects for directory because it's not exist.
+Details    : ll_dir_getstripe assume dirrectory has ost objects but this wrong.
+
 Severity   : normal
 Bugzilla   : 12652
 Description: Add FMODE_EXEC file flag for SLES10 SP1 kernel.
diff --git a/lustre/llite/dir.c b/lustre/llite/dir.c
index b6be832160..f88f514f0b 100644
--- a/lustre/llite/dir.c
+++ b/lustre/llite/dir.c
@@ -657,7 +657,6 @@ int ll_dir_getstripe(struct inode *inode, struct lov_mds_md **lmmp,
          */
         if (lmm->lmm_magic == __swab32(LOV_MAGIC)) {
                 lustre_swab_lov_user_md((struct lov_user_md *)lmm);
-                lustre_swab_lov_user_md_objects((struct lov_user_md *)lmm);
         }
 out:
         *lmmp = lmm;
-- 
GitLab