Btrfs-progs: map-logical: introduce print_mapping_info function
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Wed, 17 Jun 2015 07:49:02 +0000 (15:49 +0800)
committerDavid Sterba <dsterba@suse.cz>
Wed, 17 Jun 2015 14:09:45 +0000 (16:09 +0200)
commit1e28ed2f8497263fe7bf8f9c7b4bc71c3f001a0f
tree27c47120882bee27d8047b8ff7bc7309ba5a0bd7
parent02454f307b76f9ef64543ada5a5e420d4c3a6c50
Btrfs-progs: map-logical: introduce print_mapping_info function

The new function will print the mapping info of given range
[logical, logical+len).

Note, caller must ensure the ranges are completely inside an extent.
Or btrfs_map_block can return -ENOENT.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
btrfs-map-logical.c