Whamcloud - gitweb
libext2fs: openfs() musn't allow bigalloc without EXT2_FLAGS_64BITS
authorDarrick J. Wong <darrick.wong@oracle.com>
Sat, 12 Oct 2013 01:20:54 +0000 (21:20 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 12 Oct 2013 01:36:00 +0000 (21:36 -0400)
commit57bde59a067c21ed924de4194344948f3c3ecb9a
tree7397a6dac687f062d0771a8f9c73148e18e75d4a
parent27b2297d5726623c2d119c671a0e1778aae6010a
libext2fs: openfs() musn't allow bigalloc without EXT2_FLAGS_64BITS

Currently, only the new 64-bit bitmap implementation supports the
block<->cluster conversions that bigalloc requires.  Therefore, if we
have a bigalloc filesystem, require EXT2_FLAGS_64BITS be passed in to
ext2fs_open().  This does not mean that bigalloc file systems have to
be 64-bits; just that the userspace utilities have to be able to use
the new 64-bit capable library functions.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
lib/ext2fs/openfs.c