]> sourceware.org Git - lvm2.git/commitdiff
cleanup: use display_lvname
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 15 Aug 2014 13:52:01 +0000 (15:52 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 15 Aug 2014 13:53:17 +0000 (15:53 +0200)
Show more complete LV names.

tools/lvchange.c

index db0317601173aaddc56eafad0cf40d5d6789b2b2..42769c2917d1402f61f05d5b12dfe86a43da1975 100644 (file)
@@ -1012,9 +1012,10 @@ static int _lvchange_single(struct cmd_context *cmd, struct logical_volume *lv,
 
                if (!arg_count(cmd, yes_ARG) &&
                    (yes_no_prompt("Change of snapshot %s will also change its "
-                                  "origin %s%s. Proceed? [y/n]: ", lv->name,
-                                  origin->name, snaps_msg) == 'n')) {
-                       log_error("Logical volume %s not changed.", lv->name);
+                                  "origin %s%s. Proceed? [y/n]: ",
+                                  display_lvname(lv), display_lvname(origin),
+                                  snaps_msg) == 'n')) {
+                       log_error("Logical volume %s not changed.", display_lvname(lv));
                        return ECMD_FAILED;
                }
        }
This page took 0.038681 seconds and 5 git commands to generate.