From: tappro Date: Sat, 12 Aug 2006 13:38:05 +0000 (+0000) Subject: add debug X-Git-Tag: v1_8_0_110~486^2~1196 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=6c90fd300570245b7ef8bba4ed0f2cfe66588aa8;p=fs%2Flustre-release.git add debug --- diff --git a/lustre/mdt/mdt_lib.c b/lustre/mdt/mdt_lib.c index a618fe7..6d9a8aa 100644 --- a/lustre/mdt/mdt_lib.c +++ b/lustre/mdt/mdt_lib.c @@ -53,6 +53,7 @@ void mdt_dump_lmm(int level, struct lov_mds_md *lmm) CDEBUG_EX(level,"stripe_size %u, stripe_count %u\n", le32_to_cpu(lmm->lmm_stripe_size), le32_to_cpu(lmm->lmm_stripe_count)); + LASSERT(lmm->lmm_stripe_count < LOV_MAX_STRIPE_COUNT); for (i = 0, lod = lmm->lmm_objects; i < le32_to_cpu(lmm->lmm_stripe_count); i++, lod++) { CDEBUG_EX(level, "stripe %u idx %u subobj "LPX64"/"LPX64"\n",