[lvm-devel] master - cleanup: drop setting lv_name
Zdenek Kabelac
zkabelac at fedoraproject.org
Thu Jun 23 13:02:04 UTC 2016
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=83d483269de367facc14eee9072b79ffabdcaf82
Commit: 83d483269de367facc14eee9072b79ffabdcaf82
Parent: e5b7ebcddabb885dd8a2f4cb5b5a0a32af834076
Author: Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate: Wed Jun 15 14:55:37 2016 +0200
Committer: Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Thu Jun 23 14:59:29 2016 +0200
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.
---
lib/locking/lvmlockd.c | 1 -
liblvm/lvm_lv.c | 1 -
2 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/lib/locking/lvmlockd.c b/lib/locking/lvmlockd.c
index f9d215a..e025428 100644
--- a/lib/locking/lvmlockd.c
+++ b/lib/locking/lvmlockd.c
@@ -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 lvresize_params lp = {
- .lv_name = vg->sanlock_lv->name,
.sign = SIGN_NONE,
.size = lv->size + ((extend_mb * 1024 * 1024) / SECTOR_SIZE),
.percent = PERCENT_NONE,
diff --git a/liblvm/lvm_lv.c b/liblvm/lvm_lv.c
index ccdc340..05dd482 100644
--- a/liblvm/lvm_lv.c
+++ b/liblvm/lvm_lv.c
@@ -457,7 +457,6 @@ int lvm_lv_resize(const lv_t lv, uint64_t new_size)
{
int rc = 0;
struct lvresize_params lp = {
- .lv_name = lv->name,
.sign = SIGN_NONE,
.percent = PERCENT_NONE,
.resize = LV_ANY,
More information about the lvm-devel
mailing list