Whamcloud - gitweb
Add lfsck support to lustre kernel code.
authoradilger <adilger>
Tue, 10 Feb 2004 23:56:26 +0000 (23:56 +0000)
committeradilger <adilger>
Tue, 10 Feb 2004 23:56:26 +0000 (23:56 +0000)
b=2349
r=adilger

lustre/osc/osc_create.c

index 149ff44..845b306 100644 (file)
@@ -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);