Whamcloud - gitweb
libext2fs: fix binary and source compatibility with the dump program
authorTheodore Ts'o <tytso@mit.edu>
Thu, 15 Sep 2011 19:44:56 +0000 (15:44 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 15 Sep 2011 19:44:56 +0000 (15:44 -0400)
commit3fbfad558e01ffbacc14e5a536c4dfec0a0af4f5
treef4bb93e261235a48c9ff4710b3f6d28030cf02f7
parentb71508075780cfb31258c006a2c6bf08b061d421
libext2fs: fix binary and source compatibility with the dump program

The dump program relies on fs->frag_size and the
EXT2_FRAGS_PER_BLOCK() macro.  Kind of silly for it to do so, but it's
part of the kludgy way the dump program (which was originally written
for the BSD FFS was ported over to support ext2/3.)  Given how it
makes assumptions about the ext2/3/4 file system being similar to the
BSD FFS, it's a bit of a miracle it works for ext4 --- or at least
appears to work...

Addresses-Debian-Bug: #636418

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/ext2_fs.h
lib/ext2fs/ext2fs.h
lib/ext2fs/initialize.c
lib/ext2fs/openfs.c