summaryrefslogtreecommitdiff
path: root/tools/pvremove.c
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2018-12-07 14:35:22 -0600
committerDavid Teigland <teigland@redhat.com>2019-01-15 10:23:47 -0600
commit6620dc9475d55207bfcd5e666f0379bcdf11831a (patch)
treea0bc324a818ff3cd99f38de51ccac3df2c5a4cc0 /tools/pvremove.c
parent81b3b71dae7775c93adebdea60308e11057a4ee8 (diff)
downloadlvm2-6620dc9475d55207bfcd5e666f0379bcdf11831a.tar.gz
add device hints to reduce scanning
Save the list of PVs in /run/lvm/hints. These hints are used to reduce scanning in a number of commands to only the PVs on the system, or only the PVs in a requested VG (rather than all devices on the system.)
Diffstat (limited to 'tools/pvremove.c')
-rw-r--r--tools/pvremove.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/pvremove.c b/tools/pvremove.c
index 06a7e7307..5f76de64c 100644
--- a/tools/pvremove.c
+++ b/tools/pvremove.c
@@ -48,6 +48,8 @@ int pvremove(struct cmd_context *cmd, int argc, char **argv)
}
cmd->lockd_gl_disable = 1;
+ clear_hint_file(cmd);
+
/* When forcibly clearing a PV we don't care about a VG lock. */
if (pp.force == DONT_PROMPT_OVERRIDE)
cmd->lockd_vg_disable = 1;