btrfs-progs: restore: avoid SYMLINK messages by default

Some scripts can still rely on this message, so make it available with
-vv, so -v stays sane.

Fixes: #127
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Marcos Paulo de Souza 2020-03-19 12:10:36 -03:00 committed by David Sterba
parent b70eb104df
commit 58552e0a06
1 changed files with 3 additions and 1 deletions

View File

@ -898,7 +898,9 @@ static int copy_symlink(struct btrfs_root *root, struct btrfs_key *key,
goto out; goto out;
} }
} }
printf("SYMLINK: '%s' => '%s'\n", path_name, symlink_target);
if (verbose >= 2)
printf("SYMLINK: '%s' => '%s'\n", path_name, symlink_target);
ret = 0; ret = 0;
if (!restore_metadata) if (!restore_metadata)