mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: drop setting lv_name
lv_name arg is only used without known LV for resolving '*lv'. Once we know *lv, never use lv_name ever again. So setting it when passing *lv has not needed.
This commit is contained in:
parent
e5b7ebcdda
commit
83d483269d
@ -367,7 +367,6 @@ static int _extend_sanlock_lv(struct cmd_context *cmd, struct volume_group *vg,
|
|||||||
{
|
{
|
||||||
struct logical_volume *lv = vg->sanlock_lv;
|
struct logical_volume *lv = vg->sanlock_lv;
|
||||||
struct lvresize_params lp = {
|
struct lvresize_params lp = {
|
||||||
.lv_name = vg->sanlock_lv->name,
|
|
||||||
.sign = SIGN_NONE,
|
.sign = SIGN_NONE,
|
||||||
.size = lv->size + ((extend_mb * 1024 * 1024) / SECTOR_SIZE),
|
.size = lv->size + ((extend_mb * 1024 * 1024) / SECTOR_SIZE),
|
||||||
.percent = PERCENT_NONE,
|
.percent = PERCENT_NONE,
|
||||||
|
@ -457,7 +457,6 @@ int lvm_lv_resize(const lv_t lv, uint64_t new_size)
|
|||||||
{
|
{
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
struct lvresize_params lp = {
|
struct lvresize_params lp = {
|
||||||
.lv_name = lv->name,
|
|
||||||
.sign = SIGN_NONE,
|
.sign = SIGN_NONE,
|
||||||
.percent = PERCENT_NONE,
|
.percent = PERCENT_NONE,
|
||||||
.resize = LV_ANY,
|
.resize = LV_ANY,
|
||||||
|
Loading…
Reference in New Issue
Block a user