]> sourceware.org Git - lvm2.git/commitdiff
cleanup: a bit better error message
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 2 Jul 2014 07:50:04 +0000 (09:50 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Wed, 2 Jul 2014 08:45:43 +0000 (10:45 +0200)
tools/lvconvert.c

index 085fdcd17a48fd5d25bcc8397b71f70aedc8d23c..4f294164eced0fc743579b7ed855eaee1e5f1962 100644 (file)
@@ -2759,13 +2759,12 @@ static int _lvconvert_to_pool(struct cmd_context *cmd,
                        return 0;
                }
                if (metadata_lv == pool_lv) {
-                       log_error("Can't use same LV for thin pool data and metadata LV %s.",
-                                 lp->pool_metadata_lv_name);
+                       log_error("Can't use same LV for thin pool data and metadata LV %s/%s.",
+                                 metadata_lv->vg->name, metadata_lv->name);
                        return 0;
                }
                if (lv_is_thin_type(metadata_lv)) {
-                       log_error("Can't use thin pool logical volume %s/%s "
-                                 "for thin pool metadata.",
+                       log_error("Can't use thin type LV %s/%s for thin pool metadata.",
                                  metadata_lv->vg->name, metadata_lv->name);
                        return 0;
                }
This page took 0.038006 seconds and 5 git commands to generate.