From e5709a32be746ad0d21b13df18f23387bcccabef Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Wed, 12 Dec 2012 13:27:25 +0100 Subject: [PATCH] lvmetad: fix compiler warning and add WHATS_NEW line for previous commit --- WHATS_NEW | 1 + tools/pvscan.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index dbd59bfc7..4214b27b9 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.99 - =================================== + Fix crash in pvscan --cache -aay triggered by non-mda PV. Allow lvconvert --stripes/stripesize only with --mirrors/--repair/--thinpool. Fix memleak in device_is_usable mirror testing function. Do not ignore -f in lvconvert --repair -y -f for mirror and raid volumes. diff --git a/tools/pvscan.c b/tools/pvscan.c index 81849f56d..c2e6f5c35 100644 --- a/tools/pvscan.c +++ b/tools/pvscan.c @@ -106,7 +106,7 @@ static int _auto_activation_handler(struct cmd_context *cmd, id_read_format(&vgid_raw, vgid); /* NB. This is safe because we know lvmetad is running and we won't hit * disk. */ - if (!(vg = vg_read_internal(cmd, NULL, &vgid_raw, 0, &consistent))) + if (!(vg = vg_read_internal(cmd, NULL, (const char *) &vgid_raw, 0, &consistent))) return 1; if (vg_is_clustered(vg)) {