1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

cleanup: vgexport drops pv pointer

PV pointer is not really needed.
This commit is contained in:
Zdenek Kabelac 2014-03-30 22:40:02 +02:00
parent 31d68b7124
commit d7b6334079

View File

@ -21,7 +21,6 @@ static int vgexport_single(struct cmd_context *cmd __attribute__((unused)),
void *handle __attribute__((unused))) void *handle __attribute__((unused)))
{ {
struct pv_list *pvl; struct pv_list *pvl;
struct physical_volume *pv;
if (lvs_in_vg_activated(vg)) { if (lvs_in_vg_activated(vg)) {
log_error("Volume group \"%s\" has active logical volumes", log_error("Volume group \"%s\" has active logical volumes",
@ -34,10 +33,8 @@ static int vgexport_single(struct cmd_context *cmd __attribute__((unused)),
vg->status |= EXPORTED_VG; vg->status |= EXPORTED_VG;
dm_list_iterate_items(pvl, &vg->pvs) { dm_list_iterate_items(pvl, &vg->pvs)
pv = pvl->pv; pvl->pv->status |= EXPORTED_VG;
pv->status |= EXPORTED_VG;
}
if (!vg_write(vg) || !vg_commit(vg)) if (!vg_write(vg) || !vg_commit(vg))
goto_bad; goto_bad;