mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +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()) {
|
||||
/* Flag gets reset between each command */
|
||||
if (!full_scan_done() && f && f->wipe)
|
||||
f->wipe(f); /* Calls _full_scan(1) */
|
||||
if (!full_scan_done()) {
|
||||
if (f && f->wipe)
|
||||
f->wipe(f); /* Calls _full_scan(1) */
|
||||
else
|
||||
_full_scan(1);
|
||||
}
|
||||
} else
|
||||
_full_scan(0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user