1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

scan: refresh filters before scan

The filters save information about devices that should
be ignored, so if we need to repeat a scan  (unusual,
but happens in clvmd), we need to update the filters.
This commit is contained in:
David Teigland 2018-04-26 14:48:13 -05:00
parent 1c97fda425
commit cdb8400de2

View File

@ -1251,6 +1251,9 @@ int lvmcache_label_scan(struct cmd_context *cmd)
goto out;
}
if (!refresh_filters(cmd))
log_error("Scan failed to refresh device filter.");
/*
* Duplicates found during this label scan are added to _found_duplicate_devs().
*/