mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
cleanup: drop unused code
This commit is contained in:
parent
38b81e6537
commit
3aedaa7f2a
@ -329,8 +329,6 @@ static struct logical_volume *_set_up_pvmove_lv(struct cmd_context *cmd,
|
|||||||
uint32_t log_count = 0;
|
uint32_t log_count = 0;
|
||||||
int lv_found = 0;
|
int lv_found = 0;
|
||||||
int lv_skipped = 0;
|
int lv_skipped = 0;
|
||||||
int lv_active_count = 0;
|
|
||||||
int lv_exclusive_count = 0;
|
|
||||||
|
|
||||||
/* FIXME Cope with non-contiguous => splitting existing segments */
|
/* FIXME Cope with non-contiguous => splitting existing segments */
|
||||||
if (!(lv_mirr = lv_create_empty("pvmove%d", NULL,
|
if (!(lv_mirr = lv_create_empty("pvmove%d", NULL,
|
||||||
@ -451,13 +449,6 @@ static struct logical_volume *_set_up_pvmove_lv(struct cmd_context *cmd,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vg_is_clustered(vg)) {
|
|
||||||
if (lv_is_active_exclusive_locally(lv))
|
|
||||||
lv_exclusive_count++;
|
|
||||||
else if (lv_is_active(lv))
|
|
||||||
lv_active_count++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!_insert_pvmove_mirrors(cmd, lv_mirr, source_pvl, lv,
|
if (!_insert_pvmove_mirrors(cmd, lv_mirr, source_pvl, lv,
|
||||||
*lvs_changed))
|
*lvs_changed))
|
||||||
return_NULL;
|
return_NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user