mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
cov: remove uneeded code
Since clvmd was dropped this code become useless.
This commit is contained in:
parent
1951e0db0f
commit
6235861e64
@ -2031,8 +2031,6 @@ static int _lv_suspend(struct cmd_context *cmd, const char *lvid_s,
|
|||||||
const struct logical_volume *lv, const struct logical_volume *lv_pre)
|
const struct logical_volume *lv, const struct logical_volume *lv_pre)
|
||||||
{
|
{
|
||||||
const struct logical_volume *pvmove_lv = NULL;
|
const struct logical_volume *pvmove_lv = NULL;
|
||||||
const struct logical_volume *lv_to_free = NULL;
|
|
||||||
const struct logical_volume *lv_pre_to_free = NULL;
|
|
||||||
struct logical_volume *lv_pre_tmp, *lv_tmp;
|
struct logical_volume *lv_pre_tmp, *lv_tmp;
|
||||||
struct seg_list *sl;
|
struct seg_list *sl;
|
||||||
struct lv_segment *snap_seg;
|
struct lv_segment *snap_seg;
|
||||||
@ -2223,10 +2221,6 @@ static int _lv_suspend(struct cmd_context *cmd, const char *lvid_s,
|
|||||||
out:
|
out:
|
||||||
if (mem)
|
if (mem)
|
||||||
dm_pool_destroy(mem);
|
dm_pool_destroy(mem);
|
||||||
if (lv_pre_to_free)
|
|
||||||
release_vg(lv_pre_to_free->vg);
|
|
||||||
if (lv_to_free)
|
|
||||||
release_vg(lv_to_free->vg);
|
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
@ -2387,7 +2381,6 @@ static int _lv_has_open_snapshots(const struct logical_volume *lv)
|
|||||||
|
|
||||||
int lv_deactivate(struct cmd_context *cmd, const char *lvid_s, const struct logical_volume *lv)
|
int lv_deactivate(struct cmd_context *cmd, const char *lvid_s, const struct logical_volume *lv)
|
||||||
{
|
{
|
||||||
const struct logical_volume *lv_to_free = NULL;
|
|
||||||
struct lvinfo info;
|
struct lvinfo info;
|
||||||
static const struct lv_activate_opts laopts = { .skip_in_use = 1 };
|
static const struct lv_activate_opts laopts = { .skip_in_use = 1 };
|
||||||
struct dm_list *snh;
|
struct dm_list *snh;
|
||||||
@ -2457,8 +2450,6 @@ int lv_deactivate(struct cmd_context *cmd, const char *lvid_s, const struct logi
|
|||||||
r = 0;
|
r = 0;
|
||||||
}
|
}
|
||||||
out:
|
out:
|
||||||
if (lv_to_free)
|
|
||||||
release_vg(lv_to_free->vg);
|
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user