PERFORCE change 189862 for review
Zheng Liu
lz at FreeBSD.org
Fri Mar 11 12:50:45 UTC 2011
http://p4web.freebsd.org/@@189862?ac=10
Change 189862 by lz at freebsd-dev on 2011/03/11 12:49:49
Fix a bug in initialize e2fs_maxcluster.
Affected files ...
.. //depot/projects/soc2010/extfs/src/sys/fs/ext2fs/ext2_vfsops.c#11 edit
Differences ...
==== //depot/projects/soc2010/extfs/src/sys/fs/ext2fs/ext2_vfsops.c#11 (text+ko) ====
@@ -457,7 +457,7 @@
if (fs->e2fs_contigsumsize > 0) {
lp = fs->e2fs_maxcluster;
- for (i = 0; i < fs->e2fs_gdbcount; i++)
+ for (i = 0; i < fs->e2fs_gcount; i++)
*lp++ = fs->e2fs_contigsumsize;
}
#ifdef UNKLAR
@@ -616,10 +616,10 @@
ump->um_e2fs->e2fs_contigsumsize = 0;
ump->um_e2fs->e2fs_maxcluster = NULL;
if (ump->um_e2fs->e2fs_contigsumsize > 0) {
- size = ump->um_e2fs->e2fs_gdbcount * sizeof(int32_t);
+ size = ump->um_e2fs->e2fs_gcount * sizeof(int32_t);
ump->um_e2fs->e2fs_maxcluster = malloc(size, M_EXT2MNT, M_WAITOK);
lp = ump->um_e2fs->e2fs_maxcluster;
- for (i = 0; i < ump->um_e2fs->e2fs_gdbcount; i++)
+ for (i = 0; i < ump->um_e2fs->e2fs_gcount; i++)
*lp++ = ump->um_e2fs->e2fs_contigsumsize;
}
More information about the p4-projects
mailing list