btrfs-progs: move debug info to verbose mode for restore
The restore tool should only print info of the restoring process in verbose mode with -v option specified. Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
68b50d43c0
commit
101a8e1326
|
@ -307,7 +307,7 @@ static int copy_one_extent(struct btrfs_root *root, int fd,
|
|||
if (compress == BTRFS_COMPRESS_NONE)
|
||||
bytenr += offset;
|
||||
|
||||
if (offset)
|
||||
if (verbose && offset)
|
||||
printf("offset is %Lu\n", offset);
|
||||
/* we found a hole */
|
||||
if (disk_size == 0)
|
||||
|
|
Loading…
Reference in New Issue