diff options
author | Lu Fengqi <lufq.fnst@cn.fujitsu.com> | 2016-05-26 17:43:00 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-06-01 14:56:56 +0200 |
commit | 9088ab6a10679eccb70255d0bf5c7e31fbbb8c97 (patch) | |
tree | 71132b4fd1cff0796aa7bb7f671fd97a6df5a9d0 /tests/convert-tests.sh | |
parent | 0993ae5a73d5d0709b543faa0c528931a0f7fc36 (diff) |
btrfs-progs: make btrfs-image restore to support dup
Previously btrfs-image restore would set the chunk items to have 1 stripe,
even if the chunk is dup. If you use btrfsck on the restored file system,
some dev_extent will not find any relative chunk stripe, and the
bytes-used of dev_item will not equal to the dev_extents's total_bytes.
This patch store a additional physical just for the dup case when build
the in-memory chunk-tree.
Currently btrfsck on the restored file system, only single and dup is no
problem. raid* support should be added in the future.
Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tests/convert-tests.sh')
0 files changed, 0 insertions, 0 deletions