mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
dev-cache: Make dev_iter_create work with a NULL filter.
This commit is contained in:
parent
3877ccfe1b
commit
ee4c75c8b7
@ -971,8 +971,12 @@ struct dev_iter *dev_iter_create(struct dev_filter *f, int dev_scan)
|
|||||||
|
|
||||||
if (dev_scan && !trust_cache()) {
|
if (dev_scan && !trust_cache()) {
|
||||||
/* Flag gets reset between each command */
|
/* Flag gets reset between each command */
|
||||||
if (!full_scan_done() && f && f->wipe)
|
if (!full_scan_done()) {
|
||||||
|
if (f && f->wipe)
|
||||||
f->wipe(f); /* Calls _full_scan(1) */
|
f->wipe(f); /* Calls _full_scan(1) */
|
||||||
|
else
|
||||||
|
_full_scan(1);
|
||||||
|
}
|
||||||
} else
|
} else
|
||||||
_full_scan(0);
|
_full_scan(0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user