master - cleanup: constify lv parameter
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=b9ac1c12d0966714a918154e97864faf0a916170 Commit: b9ac1c12d0966714a918154e97864faf0a916170 Parent: 05f9acdc7ff3e9968c2e2422b2cd384c74d7dbe4 Author: Zdenek Kabelac <[email protected]> AuthorDate: Wed Nov 8 14:24:09 2017 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Sat Nov 11 00:56:10 2017 +0100
cleanup: constify lv parameter
--- lib/locking/locking.c | 2 +- lib/locking/locking.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
lib/locking/locking.c +1 -1
@@ -437,7 +437,7 @@ int suspend_lvs(struct cmd_context *cmd, struct dm_list *lvs,* Then if the VG is clustered and the LV is not yet active (e.g. due to * an activation filter) try activating on remote nodes. */ -int activate_lv_excl (struct cmd_context *cmd,struct logical_volume *lv) +int activate_lv_excl (struct cmd_context *cmd,const struct logical_volume *lv) {/* Non-clustered VGs are only activated locally. */ if (!vg_is_clustered (lv->vg))
lib/locking/locking.h +1 -1
@@ -242,7 +242,7 @@ int check_lvm1_vg_inactive(struct cmd_context *cmd, const char *vgname); lock_lv_vol(cmd, lv, LCK_LV_EXCLUSIVE | LCK_HOLD | LCK_REMOTE)struct logical_volume ; -int activate_lv_excl (struct cmd_context *cmd,struct logical_volume *lv); +int activate_lv_excl (struct cmd_context *cmd,const struct logical_volume *lv);#define activate_lv_local (cmd, lv) \ lock_lv_vol_serially(cmd, lv, LCK_LV_ACTIVATE | LCK_HOLD | LCK_LOCAL)