From: bobijam Date: Mon, 18 May 2009 08:21:42 +0000 (+0000) Subject: Branch b1_8 X-Git-Tag: v1_8_2_01~1^2~435 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=5e51109541a5c32ab9f60e0715f8a2f65ad75a90;p=fs%2Flustre-release.git Branch b1_8 b=19478 i=adilger i=sheng.yang fix last commit's overkill. --- diff --git a/lustre/lov/lov_ea.c b/lustre/lov/lov_ea.c index fcccec0..355c93e 100755 --- a/lustre/lov/lov_ea.c +++ b/lustre/lov/lov_ea.c @@ -85,11 +85,11 @@ static int lsm_lmm_verify_common(struct lov_mds_md *lmm, int lmm_bytes, } if (lmm->lmm_stripe_size == 0 || - (stripe_count != -1 && - (le32_to_cpu(lmm->lmm_stripe_size)&(LOV_MIN_STRIPE_SIZE-1)) != 0)){ + (le32_to_cpu(lmm->lmm_stripe_size)&(LOV_MIN_STRIPE_SIZE-1)) != 0) { CERROR("bad stripe size %u\n", le32_to_cpu(lmm->lmm_stripe_size)); - lov_dump_lmm(D_WARNING, lmm); + if (stripe_count != -1) + lov_dump_lmm(D_WARNING, lmm); return -EINVAL; } return 0;