mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
lvmlockd: set failure flag for test mode
Set a failure flag when vg_read returns an error for test mode. The caller can segfault if there's an error with no flag set.
This commit is contained in:
parent
b20b23dfc6
commit
a68258339d
@ -3902,6 +3902,7 @@ static int _access_vg_lock_type(struct cmd_context *cmd, struct volume_group *vg
|
|||||||
|
|
||||||
if (test_mode()) {
|
if (test_mode()) {
|
||||||
log_error("Test mode is not yet supported with lock type %s.", vg->lock_type);
|
log_error("Test mode is not yet supported with lock type %s.", vg->lock_type);
|
||||||
|
*failure |= FAILED_LOCK_TYPE;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user