master - lvmlockd: set failure flag for test mode
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=a68258339da7e56910a2a3f6f98e43424ac219b6 Commit: a68258339da7e56910a2a3f6f98e43424ac219b6 Parent: b20b23dfc6bef6f0e468f8331b277e974d1fea12 Author: David Teigland <[email protected]> AuthorDate: Fri Oct 4 10:07:24 2019 -0500 Committer: David Teigland <[email protected]> CommitterDate: Fri Oct 4 10:09:49 2019 -0500
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.
--- lib/metadata/metadata.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
lib/metadata/metadata.c +1 -0
@@ -3902,6 +3902,7 @@ static int _access_vg_lock_type(struct cmd_context *cmd, struct volume_group *vgif (test_mode ()) {log_error ("Test mode is not yet supported with lock type %s." , vg->lock_type); + *failure |=FAILED_LOCK_TYPE ;return 0 ; }