mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
debug: show LV name where dlid creation failed
This commit is contained in:
parent
922fccc656
commit
4afe43e1a3
@ -16,6 +16,7 @@
|
|||||||
#include "lib.h"
|
#include "lib.h"
|
||||||
#include "lvm-string.h"
|
#include "lvm-string.h"
|
||||||
#include "metadata-exported.h"
|
#include "metadata-exported.h"
|
||||||
|
#include "display.h"
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
@ -211,6 +212,7 @@ char *build_dm_uuid(struct dm_pool *mem, const struct logical_volume *lv,
|
|||||||
const char *layer)
|
const char *layer)
|
||||||
{
|
{
|
||||||
const char *lvid = lv->lvid.s;
|
const char *lvid = lv->lvid.s;
|
||||||
|
char *dlid;
|
||||||
|
|
||||||
if (!layer) {
|
if (!layer) {
|
||||||
/*
|
/*
|
||||||
@ -235,5 +237,9 @@ char *build_dm_uuid(struct dm_pool *mem, const struct logical_volume *lv,
|
|||||||
NULL;
|
NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return dm_build_dm_uuid(mem, UUID_PREFIX, lvid, layer);
|
if (!(dlid = dm_build_dm_uuid(mem, UUID_PREFIX, lvid, layer)))
|
||||||
|
log_error("Failed to build LVM dlid for %s.",
|
||||||
|
display_lvname(lv));
|
||||||
|
|
||||||
|
return dlid;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user