diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/pvscan.c | 3 | ||||
-rw-r--r-- | tools/vgchange.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tools/pvscan.c b/tools/pvscan.c index a846322e..6c634e35 100644 --- a/tools/pvscan.c +++ b/tools/pvscan.c @@ -97,7 +97,8 @@ static void _pvscan_display_single(struct cmd_context *cmd, pv_pe_size(pv))); } -static int _auto_activation_handler(struct volume_group *vg, int partial, int activate) +static int _auto_activation_handler(struct volume_group *vg, int partial, + activation_change_t activate) { /* TODO: add support for partial and clustered VGs */ if (partial || vg_is_clustered(vg)) diff --git a/tools/vgchange.c b/tools/vgchange.c index 2013447b..c59d58e0 100644 --- a/tools/vgchange.c +++ b/tools/vgchange.c @@ -512,7 +512,8 @@ static int vgchange_single(struct cmd_context *cmd, const char *vg_name, } if (arg_count(cmd, activate_ARG)) { - if (!vgchange_activate(cmd, vg, arg_uint_value(cmd, activate_ARG, CHANGE_AY))) + if (!vgchange_activate(cmd, vg, (activation_change_t) + arg_uint_value(cmd, activate_ARG, CHANGE_AY))) return ECMD_FAILED; } |