diff --git a/WHATS_NEW b/WHATS_NEW index a1099fe22..ff300399a 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.109 - ================================= + Fix incorrect persistent .cache after vgcreate with PV creation. (2.02.108) Display actual size changed when resizing LV. Allow approximate allocation with +%FREE in lvextend. Remove possible spurious "not found" message on PV create before wiping. diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c index 39fa45fff..6f88fd846 100644 --- a/lib/metadata/metadata.c +++ b/lib/metadata/metadata.c @@ -1337,13 +1337,6 @@ static int pvcreate_check(struct cmd_context *cmd, const char *name, /* FIXME Check partition type is LVM unless --force is given */ - /* - * Make sure we don't overwrite any existing signature - * that may have been created after last time we did filtering. - */ - if (cmd->filter->wipe) - cmd->filter->wipe(cmd->filter); - /* Is there a pv here already? */ pv = find_pv_by_name(cmd, name, 1, 1); diff --git a/tools/pvcreate.c b/tools/pvcreate.c index 958e353b5..67ecd41c9 100644 --- a/tools/pvcreate.c +++ b/tools/pvcreate.c @@ -105,6 +105,15 @@ int pvcreate(struct cmd_context *cmd, int argc, char **argv) return EINVALID_CMD_LINE; } + /* + * Make sure we don't overwrite any existing signature + * that may have been created after last time we did filtering. + */ + if (!(refresh_filters(cmd))) { + log_error("Failed to refresh filters before pvcreate."); + return ECMD_FAILED; + } + for (i = 0; i < argc; i++) { if (sigint_caught()) return_ECMD_FAILED;