projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68b50d4
)
btrfs-progs: move debug info to verbose mode for restore
author
Gui Hecheng
<guihc.fnst@cn.fujitsu.com>
Mon, 1 Sep 2014 01:47:33 +0000
(09:47 +0800)
committer
David 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
patch
|
blob
|
history
diff --git
a/cmds-restore.c
b/cmds-restore.c
index
ff2b3fb
..
dc6c027
100644
(file)
--- 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)