Re: [PATCH] btrfs-progs: make btrfs-image restore to support dup

2016-05-31 Thread luke
At 06/01/2016 12:01 AM, David Sterba wrote: On Tue, May 31, 2016 at 03:14:25PM +0800, luke wrote: @@ -68,6 +68,12 @@ struct meta_cluster { struct fs_chunk { u64 logical; u64 physical; + /* physical_dup only store additonal physical for BTRFS_BLOCK_GROUP_DUP +*

Re: [PATCH] btrfs-progs: make btrfs-image restore to support dup

2016-05-30 Thread David Sterba
On Thu, May 26, 2016 at 05:43:00PM +0800, Lu Fengqi wrote: > 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

[PATCH] btrfs-progs: make btrfs-image restore to support dup

2016-05-26 Thread Lu Fengqi
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