From d5aeb4bc34ffab440b4997a764791187c75c8639 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Wed, 26 Oct 2005 15:54:50 +0000 Subject: [PATCH] a missing lvid/dlid conversion --- lib/activate/dev_manager.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c index 6f8720fed..d863e70c9 100644 --- a/lib/activate/dev_manager.c +++ b/lib/activate/dev_manager.c @@ -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;