summaryrefslogtreecommitdiffstats
path: root/lib/format_text/text_label.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2006-04-13 17:32:24 +0000
committerAlasdair Kergon <agk@redhat.com>2006-04-13 17:32:24 +0000
commit2ab16287e6fed3c771322f1217a176cd6619a5bd (patch)
tree2dd29ef87bc974e7337d2f197cf53824dca0171c /lib/format_text/text_label.c
parenta5fe5a7cdda8a7392a8bdc7d4a7c4c68978f652e (diff)
downloadlvm2-2ab16287e6fed3c771322f1217a176cd6619a5bd.tar.gz
lvm2-2ab16287e6fed3c771322f1217a176cd6619a5bd.tar.xz
lvm2-2ab16287e6fed3c771322f1217a176cd6619a5bd.zip
When choosing between identically-named VGs, also consider creation_host.
Diffstat (limited to 'lib/format_text/text_label.c')
-rw-r--r--lib/format_text/text_label.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/format_text/text_label.c b/lib/format_text/text_label.c
index 144fbf98..ad92dbf6 100644
--- a/lib/format_text/text_label.c
+++ b/lib/format_text/text_label.c
@@ -199,6 +199,7 @@ static int _read(struct labeller *l, struct device *dev, char *buf,
struct mda_context *mdac;
const char *vgname;
uint32_t vgstatus;
+ char *creation_host;
pvhdr = (struct pv_header *) ((void *) buf + xlate32(lh->offset_xl));
@@ -235,9 +236,10 @@ static int _read(struct labeller *l, struct device *dev, char *buf,
list_iterate_items(mda, &info->mdas) {
mdac = (struct mda_context *) mda->metadata_locn;
if ((vgname = vgname_from_mda(info->fmt, &mdac->area,
- &vgid, &vgstatus)) &&
+ &vgid, &vgstatus, &creation_host)) &&
!lvmcache_update_vgname_and_id(info, vgname,
- (char *) &vgid, vgstatus))
+ (char *) &vgid, vgstatus,
+ creation_host))
return_0;
}