mirror of
git://sourceware.org/git/lvm2.git
synced 2025-04-18 02:51:49 +03:00
cleanup: constify lv parameter
This commit is contained in:
parent
05f9acdc7f
commit
b9ac1c12d0
@ -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))
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user