btrfs-progs: receive: unconditionally print if doing chroot
authorDavid Sterba <dsterba@suse.cz>
Fri, 24 Apr 2015 16:01:32 +0000 (18:01 +0200)
committerDavid Sterba <dsterba@suse.cz>
Fri, 24 Apr 2015 16:01:32 +0000 (18:01 +0200)
The chroot action seems important enough to be printed unconditionally
and without the verbose option that prints way too much information.

Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-receive.c

index 3505c76e92f3a0282967ab8741394188b573f9a2..b7cf3f955528cf2f923ba185791c035cc8c4f27e 100644 (file)
@@ -875,10 +875,7 @@ static int do_receive(struct btrfs_receive *r, const char *tomnt, int r_fd,
                                strerror(-ret));
                        goto out;
                }
-               if (g_verbose >= 1) {
-                       fprintf(stderr, "chrooted to %s\n",
-                               dest_dir_full_path);
-               }
+               fprintf(stderr, "Chroot to %s\n", dest_dir_full_path);
                r->root_path = strdup("/");
                r->dest_dir_path = r->root_path;
        } else {