From a84634c9074e2dc0a578e9bad2ed15b31dd08c65 Mon Sep 17 00:00:00 2001
From: shadow <shadow>
Date: Sun, 12 Oct 2008 13:35:27 +0000
Subject: [PATCH] fix return code from del orphan. Branch b1_6 b=17279 i=umka
 i=wangdi

---
 lustre/lov/lov_obd.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lustre/lov/lov_obd.c b/lustre/lov/lov_obd.c
index 32f64862b6..1ceaf61745 100644
--- a/lustre/lov/lov_obd.c
+++ b/lustre/lov/lov_obd.c
@@ -1110,11 +1110,13 @@ static int lov_clear_orphans(struct obd_export *export, struct obdo *src_oa,
                 /* XXX: LOV STACKING: use real "obj_mdp" sub-data */
                 err = obd_create(lov->lov_tgts[i]->ltd_exp, 
                                  tmp_oa, &obj_mdp, oti);
-                if (err)
+                if (err) {
                         /* This export will be disabled until it is recovered,
                            and then orphan recovery will be completed. */
                         CERROR("error in orphan recovery on OST idx %d/%d: "
                                "rc = %d\n", i, lov->desc.ld_tgt_count, err);
+                        rc = err;
+                }
 
                 if (ost_uuid)
                         break;
-- 
GitLab