diff options
author | David Teigland <teigland@redhat.com> | 2022-11-07 11:38:46 -0600 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2022-11-07 11:38:46 -0600 |
commit | c98617c593a84e32ff8ee32ecf2382d4e1369c16 (patch) | |
tree | d80a5cbc669aa87690015fbf28405cd9d6d1a579 /tools/pvscan.c | |
parent | 761b922178c8522fd9abb207ba31bd27f9fa9dc4 (diff) | |
download | lvm2-c98617c593a84e32ff8ee32ecf2382d4e1369c16.tar.gz |
devices: factor common list functions
which were duplicated in various places
Diffstat (limited to 'tools/pvscan.c')
-rw-r--r-- | tools/pvscan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pvscan.c b/tools/pvscan.c index 1c58e4a5b..96935a43b 100644 --- a/tools/pvscan.c +++ b/tools/pvscan.c @@ -703,7 +703,7 @@ static int _pvscan_aa_quick(struct cmd_context *cmd, struct pvscan_aa_params *pp * devices used by the VG we read. */ dm_list_iterate_items(pvl, &vg->pvs) { - if (dev_in_device_list(pvl->pv->dev, &devs)) + if (device_list_find_dev(&devs, pvl->pv->dev)) continue; log_error_pvscan(cmd, "activation for VG %s found different devices.", vgname); ret = ECMD_FAILED; |