btrfs-progs: convert: fix support for e2fsprogs < 1.42
commit36da47b409535f947549dcf560a3b1c1bd38af4a
authorJeff Mahoney <jeffm@suse.com>
Mon, 30 Apr 2018 14:37:06 +0000 (30 10:37 -0400)
committerDavid Sterba <dsterba@suse.com>
Thu, 7 Jun 2018 14:37:35 +0000 (7 16:37 +0200)
tree9aea81e6006d1852f47b421ef7fd907f75ac6cbc
parent4aebb2588c3f3164eba5833ffaf4eb101a05abb2
btrfs-progs: convert: fix support for e2fsprogs < 1.42

Commit 324d4c1857a (btrfs-progs: convert: Add larger device support)
introduced new dependencies on the 64-bit API provided by e2fsprogs.
That API was introduced in v1.42 (along with bigalloc).

This patch maps the following to their equivalents in e2fsprogs < 1.42.
- ext2fs_get_block_bitmap_range2
- ext2fs_inode_data_blocks2
- ext2fs_read_ext_attr2

Since we need to detect and define EXT2_FLAG_64BITS for compatibilty
anyway, it makes sense to use that to detect the older e2fsprogs instead
of defining a new flag ourselves.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
configure.ac
convert/source-ext2.h