btrfs-progs: convert: Add larger device support
authorLakshmipathi.G <lakshmipathi.g@giis.co.in>
Sat, 3 Jun 2017 09:57:45 +0000 (15:27 +0530)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Jun 2017 15:09:54 +0000 (17:09 +0200)
commit324d4c1857ac8282e838d1fe7c1a9b65b67f0d40
treeac72f75234e0d62cc279a93593f84cb5fe2f1678
parent8636132c6d3e0b916a6877c327314f211498ab88
btrfs-progs: convert: Add larger device support

With larger file system (in this case its 22TB), ext2fs_open() returns
EXT2_ET_CANT_USE_LEGACY_BITMAPS error message with
ext2fs_read_block_bitmap().

To overcome this issue,
(a) we need pass EXT2_FLAG_64BITS flag with ext2fs_open.
(b) use 64-bit functions like ext2fs_get_block_bitmap_range2,
    ext2fs_inode_data_blocks2,ext2fs_read_ext_attr2
(c) use 64bit types with btrfs_convert_context fields

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=194795
Signed-off-by: Lakshmipathi.G <lakshmipathi.g@giis.co.in>
Signed-off-by: David Sterba <dsterba@suse.com>
convert/source-ext2.c