From: Zdenek Kabelac Date: Thu, 7 May 2015 10:10:20 +0000 (+0200) Subject: pvcreate: fix test for wiping status X-Git-Tag: v2_02_120~106 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=2cea1c1bd9d432a7544713c49620e4cc2ab56ee6;p=lvm2.git pvcreate: fix test for wiping status Commit ed420fb6917162ed17af69a9a0ec9ae26e61e209 changed paramet wiped to be a pointer, but missed to switch to test pointer dereferenced value and instead always checked 'pointer'. --- diff --git a/WHATS_NEW b/WHATS_NEW index 87ce45cff..3b22ec5dc 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.120 - =============================== + Fix check if pvcreate wiped device (2.02.117). Fix storing of vgid when caching metadata (2.02.118). Fix recursive lvm-config man page. (2.02.119) Refactor polldaemon interfaces to poll every operation by VG/LV couple diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c index a1a31eb27..2a5be7d48 100644 --- a/lib/metadata/metadata.c +++ b/lib/metadata/metadata.c @@ -1504,7 +1504,7 @@ static int _pvcreate_check(struct cmd_context *cmd, const char *name, goto out; } - if (wiped) + if (*wiped) filter_refresh_needed = scan_needed = 1; if (sigint_caught())