diff options
author | Gui Hecheng <guihc.fnst@cn.fujitsu.com> | 2014-09-01 09:47:33 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-09-02 17:05:07 +0200 |
commit | 101a8e1326637d9da727f234722abe305d1729fd (patch) | |
tree | 5dfb485826b640630617832e5fc7fd5b6265230d | |
parent | 68b50d43c0bcaab3fb110b2213aef229d68532d3 (diff) | |
download | btrfs-progs-101a8e1326637d9da727f234722abe305d1729fd.tar.gz |
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>
-rw-r--r-- | cmds-restore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-restore.c b/cmds-restore.c index ff2b3fb..dc6c027 100644 --- a/cmds-restore.c +++ b/cmds-restore.c @@ -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) |