Whamcloud - gitweb
libext2fs: ext2fs_[set_]file_acl_block needs to check for 64-bit feature flag
authorTheodore Ts'o <tytso@mit.edu>
Mon, 17 Oct 2011 00:29:00 +0000 (20:29 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 17 Oct 2011 00:46:49 +0000 (20:46 -0400)
commit0c80c44bd08c60f3cd0ad87f12a71a75cac3bcaa
tree67a7c88cc9f1ec48d47664d8c06f655acf568ae4
parent515e555a0c36ae0294d71ba9ba45f7fa576cfd0f
libext2fs: ext2fs_[set_]file_acl_block needs to check for 64-bit feature flag

The ext2fs_file_acl_block() and ext2fs_set_file_acl_block() needs to
only check i_file_acl_high if the 64-bit flag is set.  This is needed
because otherwise we will run into problems on Hurd systems which
actually use that field for h_i_mode_high.

This involves an ABI change since we need to pass ext2_filsys to these
functions.  Fortunately these functions were first included in the
1.42-WIP series, so it's OK for us to change them now.  (This is why
we have 1.42-WIP releases.  :-)

Addresses-Sourceforge-Bug: #3379227

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
17 files changed:
debian/e2fslibs.symbols
debugfs/debugfs.c
debugfs/icheck.c
e2fsck/message.c
e2fsck/pass1.c
e2fsck/pass1b.c
e2fsck/pass2.c
e2fsck/super.c
lib/ext2fs/blknum.c
lib/ext2fs/bmove.c
lib/ext2fs/ext2fs.h
lib/ext2fs/valid_blk.c
lib/quota/quotaio.c
misc/e2image.c
misc/tune2fs.c
resize/resize2fs.c
tests/f_bad_disconnected_inode/expect.1