From d786f21c7634b367958f455c376b6a9ad7a820a7 Mon Sep 17 00:00:00 2001 From: shadow Date: Sun, 12 Oct 2008 13:32:16 +0000 Subject: [PATCH] fix return code from del orphan. Branch b1_8_gate 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 8985ccb..34a275e 100644 --- a/lustre/lov/lov_obd.c +++ b/lustre/lov/lov_obd.c @@ -1151,11 +1151,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; -- 1.8.3.1