mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
vgchange: fix error code in error path
This rather hard to hit error path used wrong return value to signal real error.
This commit is contained in:
parent
3eff3aa4f8
commit
70b159d145
@ -187,7 +187,7 @@ int vgchange_activate(struct cmd_context *cmd, struct volume_group *vg,
|
|||||||
strcmp(vg->system_id, cmd->system_id) &&
|
strcmp(vg->system_id, cmd->system_id) &&
|
||||||
do_activate) {
|
do_activate) {
|
||||||
log_error("Cannot activate LVs in a foreign VG.");
|
log_error("Cannot activate LVs in a foreign VG.");
|
||||||
return ECMD_FAILED;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user