Whamcloud - gitweb
tests: add field sizes to inode/super struct tests
authorAndreas Dilger <adilger@whamcloud.com>
Tue, 20 Mar 2012 03:54:03 +0000 (23:54 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 20 Mar 2012 03:54:03 +0000 (23:54 -0400)
commit963d0f1a9458396c18d0aa030601f29cc1e25f30
tree63b2674cd267c4924b37af3204d5c8129a843997
parent0f30deb3b0afa0b2949ba4cb3af988275ce7f998
tests: add field sizes to inode/super struct tests

In addition to validating the ordering of fields within the inode
and superblock structures, also validate the field sizes.  Otherwise
it is possible to incorrectly change the size of one of these fields
without getting any kind of error from these tests.  Failures would
only show up later in the test image checks if the field that is
changed is before another in-use field.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/tst_inode_size.c
lib/ext2fs/tst_super_size.c