Whamcloud - gitweb
LU-5523 mdt: add --index option to default dir stripe
[fs/lustre-release.git] / lustre / lmv / lmv_obd.c
index f0dccda..c13e91a 100644 (file)
@@ -1250,6 +1250,11 @@ static int lmv_placement_policy(struct obd_device *obd,
                RETURN(0);
        }
 
+       if (op_data->op_default_stripe_offset != -1) {
+               *mds = op_data->op_default_stripe_offset;
+               RETURN(0);
+       }
+
        /**
         * If stripe_offset is provided during setdirstripe
         * (setdirstripe -i xx), xx MDS will be choosen.