mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-13 17:18:32 +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
4afb5971b9
commit
4479228d32
@ -199,7 +199,7 @@ int vgchange_activate(struct cmd_context *cmd, struct volume_group *vg,
|
||||
strcmp(vg->system_id, cmd->system_id) &&
|
||||
do_activate) {
|
||||
log_error("Cannot activate LVs in a foreign VG.");
|
||||
return ECMD_FAILED;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user