]> sourceware.org Git - lvm2.git/commitdiff
a missing lvid/dlid conversion
authorAlasdair Kergon <agk@redhat.com>
Wed, 26 Oct 2005 15:54:50 +0000 (15:54 +0000)
committerAlasdair Kergon <agk@redhat.com>
Wed, 26 Oct 2005 15:54:50 +0000 (15:54 +0000)
lib/activate/dev_manager.c

index 6f8720fedc9bc322ae1796e3239ed9822f1ca8b0..d863e70c9457e9254de901de8cad0dee61ab68ec 100644 (file)
@@ -1074,6 +1074,7 @@ int dev_manager_mirror_percent(struct dev_manager *dm,
                               float *percent, uint32_t *event_nr)
 {
        char *name;
+       const char *dlid;
 
        /*
         * Build a name for the top layer.
@@ -1085,8 +1086,13 @@ int dev_manager_mirror_percent(struct dev_manager *dm,
 
        /* FIXME dm_pool_free ? */
 
+       if (!(dlid = _build_dlid(dm->mem, lv->lvid.s, NULL))) {
+               log_error("dlid build failed for %s", lv->name);
+               return 0;
+       }
+
        log_debug("Getting device mirror status percentage for %s", name);
-       if (!(_percent(dm, name, lv->lvid.s, "mirror", wait, lv, percent,
+       if (!(_percent(dm, name, dlid, "mirror", wait, lv, percent,
                       event_nr))) {
                stack;
                return 0;
This page took 0.092569 seconds and 5 git commands to generate.