btrfs-progs: move debug info to verbose mode for restore
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Mon, 1 Sep 2014 01:47:33 +0000 (09:47 +0800)
committerDavid Sterba <dsterba@suse.cz>
Tue, 2 Sep 2014 15:05:07 +0000 (17:05 +0200)
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>
cmds-restore.c

index ff2b3fb..dc6c027 100644 (file)
@@ -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)