mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-24 14:50:34 +03:00
cleanup: switch to use CHANGE_AEY
Since for other enums we use 'Y' or 'N' use it with 'AE' as well.
This commit is contained in:
parent
f1e9e94a5b
commit
e2312d28ed
@ -888,7 +888,7 @@ deactivate:
|
||||
return_0;
|
||||
}
|
||||
break;
|
||||
case CHANGE_AE:
|
||||
case CHANGE_AEY:
|
||||
exclusive:
|
||||
log_verbose("Activating logical volume \"%s\" exclusively.",
|
||||
lv->name);
|
||||
|
@ -776,7 +776,7 @@ int is_mirror_image_removable(struct logical_volume *mimage_lv, void *baton);
|
||||
typedef enum activation_change {
|
||||
CHANGE_AY = 0, /* activate */
|
||||
CHANGE_AN = 1, /* deactivate */
|
||||
CHANGE_AE = 2, /* activate exclusively */
|
||||
CHANGE_AEY = 2, /* activate exclusively */
|
||||
CHANGE_ALY = 3, /* activate locally */
|
||||
CHANGE_ALN = 4, /* deactivate locally */
|
||||
CHANGE_AAY = 5 /* automatic activation */
|
||||
|
@ -2513,7 +2513,7 @@ static int _lvconvert_thin(struct cmd_context *cmd,
|
||||
struct logical_volume *torigin_lv, *pool_lv = lp->pool_data_lv;
|
||||
struct volume_group *vg = pool_lv->vg;
|
||||
struct lvcreate_params lvc = {
|
||||
.activate = CHANGE_AE,
|
||||
.activate = CHANGE_AEY,
|
||||
.alloc = ALLOC_INHERIT,
|
||||
.lv_name = lp->origin_lv_name,
|
||||
.major = -1,
|
||||
|
@ -242,8 +242,8 @@ int activation_arg(struct cmd_context *cmd __attribute__((unused)), struct arg_v
|
||||
|
||||
if (!strcmp(av->value, "e") || !strcmp(av->value, "ey") ||
|
||||
!strcmp(av->value, "ye")) {
|
||||
av->i_value = CHANGE_AE;
|
||||
av->ui_value = CHANGE_AE;
|
||||
av->i_value = CHANGE_AEY;
|
||||
av->ui_value = CHANGE_AEY;
|
||||
}
|
||||
|
||||
else if (!strcmp(av->value, "y")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user