diff options
author | Alasdair Kergon <agk@redhat.com> | 2006-04-21 15:37:08 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2006-04-21 15:37:08 +0000 |
commit | a4db92da3ac638262d46b09c63f375ceffcc4909 (patch) | |
tree | 0f7950407a1617f3e9e13e842a211d2aa24ddb5f | |
parent | 9b777eb281e547797df75ef1e8057e8934e661fd (diff) | |
download | lvm2-2_02_05.tar.gz |
terminate vgid in debug mesgv2_02_05old-v2_02_05
-rw-r--r-- | lib/format_text/format-text.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/format_text/format-text.c b/lib/format_text/format-text.c index 3c6a9802e..cd579950a 100644 --- a/lib/format_text/format-text.c +++ b/lib/format_text/format-text.c @@ -884,6 +884,7 @@ const char *vgname_from_mda(const struct format_type *fmt, const char *vgname = NULL; unsigned int len = 0; char buf[NAME_LEN + 1]; + char uuid[64]; if (!dev_open(dev_area->dev)) { stack; @@ -939,10 +940,16 @@ const char *vgname_from_mda(const struct format_type *fmt, goto out; } + if (!id_write_format(vgid, uuid, sizeof(uuid))) { + stack; + vgname = NULL; + goto out; + } + log_debug("%s: Found metadata at %" PRIu64 " size %" PRIu64 " for %s (%s)", dev_name(dev_area->dev), dev_area->start + rlocn->offset, - rlocn->size, vgname, vgid->uuid); + rlocn->size, vgname, uuid); out: if (!dev_close(dev_area->dev)) |