mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
Clear a FIXME about checking for identical devices by comparing dev_t
instead of name.
This commit is contained in:
parent
ff783e52c9
commit
7743c8685e
@ -239,8 +239,7 @@ struct pv_list *find_pv_in_vg(struct volume_group *vg, const char *pv_name)
|
||||
|
||||
list_iterate(pvh, &vg->pvs) {
|
||||
pvl = list_item(pvh, struct pv_list);
|
||||
/* FIXME check dev not name */
|
||||
if (!strcmp(dev_name(pvl->pv->dev), pv_name))
|
||||
if (pvl->pv->dev == dev_cache_get(pv_name, vg->cmd->filter))
|
||||
return pvl;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user