1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 03:27:58 +03:00

Clear a FIXME about checking for identical devices by comparing dev_t

instead of name.
This commit is contained in:
Alasdair Kergon 2002-01-24 22:37:24 +00:00
parent ff783e52c9
commit 7743c8685e

View File

@ -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;
}