diff --git a/lustre/lov/lov_pack.c b/lustre/lov/lov_pack.c index 5f1416018f30a8c6f37000233417324214861aa1..0f0ff06ee88a6af2cbd3bfcf8f66dd90b3bebb2e 100644 --- a/lustre/lov/lov_pack.c +++ b/lustre/lov/lov_pack.c @@ -108,6 +108,8 @@ int lov_packmd(struct obd_export *exp, struct lov_mds_md **lmmp, lsm->lsm_magic, LOV_MAGIC); RETURN(-EINVAL); } + /* If we are just sizing the EA, limit the stripe count + * to the actual number of OSTs in this filesystem. */ if (!lmmp) { stripe_count = lov_get_stripecnt(lov, lsm->lsm_stripe_count); lsm->lsm_stripe_count = stripe_count;