Whamcloud - gitweb
Back out a small LLP change: instead of deleting a bunch of files just
authorphil <phil>
Thu, 23 Oct 2003 18:46:03 +0000 (18:46 +0000)
committerphil <phil>
Thu, 23 Oct 2003 18:46:03 +0000 (18:46 +0000)
to re-create them, I was doing an initial OST create which includes
the initial set of precreated files.  Stop doing that.

Those files might have a little data in them, or some might have been
created and removed already, and both of those are bad.

lustre/osc/osc_create.c

index 4c776dd..568423b 100644 (file)
@@ -190,7 +190,7 @@ int osc_create(struct obd_export *exp, struct obdo *oa,
            oa->o_flags == OBD_FL_DELORPHAN) {
                 /* delete from next_id on up */
                 oa->o_valid |= OBD_MD_FLID;
-                oa->o_id = oscc->oscc_next_id + oscc->oscc_initial_create_count;
+                oa->o_id = oscc->oscc_next_id;
                 if (oa->o_id == 0)
                         RETURN(0);
                 rc = osc_real_create(oscc->oscc_exp, oa, ea, NULL);