summaryrefslogtreecommitdiff
path: root/tools/vgextend.c
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2018-05-03 17:12:07 -0500
committerDavid Teigland <teigland@redhat.com>2018-05-10 16:03:19 -0500
commit57bb46c5e7f8d6af1737af5ed1acae8abc37cded (patch)
tree60bf7f2050903efa5680f5234f8a16d2da2e6d72 /tools/vgextend.c
parent39ce38eb8868e367fa796ddb12b1020647d14c63 (diff)
downloadlvm2-57bb46c5e7f8d6af1737af5ed1acae8abc37cded.tar.gz
filter: use bcache for filter reads
Filters are still applied before any device reading or the label scan, but any filter checks that want to read the device are skipped and the device is flagged. After bcache is populated, but before lvm looks for devices (i.e. before label scan), the filters are reapplied to the devices that were flagged above. The filters will then find the data they need in bcache.
Diffstat (limited to 'tools/vgextend.c')
-rw-r--r--tools/vgextend.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/vgextend.c b/tools/vgextend.c
index 35168e954..5287a364e 100644
--- a/tools/vgextend.c
+++ b/tools/vgextend.c
@@ -154,6 +154,9 @@ int vgextend(struct cmd_context *cmd, int argc, char **argv)
/* pvcreate within vgextend cannot be forced. */
pp->force = 0;
+ /* Check for old md signatures at the end of devices. */
+ cmd->use_full_md_check = 1;
+
/*
* Needed to change the set of orphan PVs.
* (disable afterward to prevent process_each_pv from doing