Whamcloud - gitweb
fix return code from del orphan.
authorshadow <shadow>
Sun, 12 Oct 2008 13:37:46 +0000 (13:37 +0000)
committershadow <shadow>
Sun, 12 Oct 2008 13:37:46 +0000 (13:37 +0000)
Branch HEAD
b=17279
i=umka
i=wangdi

lustre/lov/lov_obd.c

index 68ac43b..37e3e70 100644 (file)
@@ -1124,11 +1124,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;