X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Flmv%2Flmv_obd.c;h=c13e91a469eb1e185238c932d34b56e0a05a1a1d;hb=34e7d46234e5c957e1e815c5267b13fe610a9d8d;hp=f0dccda0534f330449819a94b00a48bf1c276625;hpb=e477f21ed67bfb76aba2b7cede8f62cc0cbd2ff7;p=fs%2Flustre-release.git diff --git a/lustre/lmv/lmv_obd.c b/lustre/lmv/lmv_obd.c index f0dccda..c13e91a 100644 --- a/lustre/lmv/lmv_obd.c +++ b/lustre/lmv/lmv_obd.c @@ -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.