Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fbeb41
)
add debug
author
tappro
<tappro>
Sat, 12 Aug 2006 13:38:05 +0000
(13:38 +0000)
committer
tappro
<tappro>
Sat, 12 Aug 2006 13:38:05 +0000
(13:38 +0000)
lustre/mdt/mdt_lib.c
patch
|
blob
|
history
diff --git
a/lustre/mdt/mdt_lib.c
b/lustre/mdt/mdt_lib.c
index
a618fe7
..
6d9a8aa
100644
(file)
--- 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",