From: Martin Wilck <mwi...@arcor.de> Almost everyone who cares about her data will run btrfs restore with -v. The "offset is" messages displayed will irritate users because they reveal only btrfs internals. Users will think that "offset" refers to a file offset and suspect severe corruption.
Limit these messages to verbose > 1. Signed-off-by: Martin Wilck <mwi...@arcor.de> --- cmds-restore.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/cmds-restore.c b/cmds-restore.c index 10bb8be..f1c63ed 100644 --- a/cmds-restore.c +++ b/cmds-restore.c @@ -315,7 +315,7 @@ static int copy_one_extent(struct btrfs_root *root, int fd, if (compress == BTRFS_COMPRESS_NONE) bytenr += offset; - if (verbose && offset) + if (verbose > 1 && offset) printf("offset is %Lu\n", offset); /* we found a hole */ if (disk_size == 0) -- 1.7.3.4 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html