From ebee1e894179b3eb220e928167a16cdaf3fc207c Mon Sep 17 00:00:00 2001 From: shadow <shadow> Date: Sun, 12 Oct 2008 13:37:46 +0000 Subject: [PATCH] fix return code from del orphan. Branch HEAD 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 68ac43bc8d..37e3e70a35 100644 --- a/lustre/lov/lov_obd.c +++ b/lustre/lov/lov_obd.c @@ -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; -- GitLab