From 3163afac171501b4be2a2c3f076924df5d0d57a2 Mon Sep 17 00:00:00 2001 From: adilger Date: Tue, 10 Feb 2004 23:56:26 +0000 Subject: [PATCH] Add lfsck support to lustre kernel code. b=2349 r=adilger --- lustre/osc/osc_create.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lustre/osc/osc_create.c b/lustre/osc/osc_create.c index 149ff44..845b306 100644 --- a/lustre/osc/osc_create.c +++ b/lustre/osc/osc_create.c @@ -216,6 +216,11 @@ int osc_create(struct obd_export *exp, struct obdo *oa, if ((oa->o_valid & OBD_MD_FLGROUP) && (oa->o_gr != 0)) RETURN(osc_real_create(exp, oa, ea, oti)); + if ((oa->o_valid & OBD_MD_FLFLAGS) && + oa->o_flags == OBD_FL_RECREATE_OBJS) { + RETURN(osc_real_create(exp, oa, ea, oti)); + } + lsm = *ea; if (lsm == NULL) { rc = obd_alloc_memmd(exp, &lsm); -- 1.8.3.1