[lvm-devel] master - lvmlockd: test mode doesn't work

David Teigland teigland at fedoraproject.org
Mon Feb 13 18:09:54 UTC 2017


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=19267fa6aa0709e3d0c962ad0904920f06102a5b
Commit:        19267fa6aa0709e3d0c962ad0904920f06102a5b
Parent:        2923d9e47deb11b28b8b753dd7862da186da051c
Author:        David Teigland <teigland at redhat.com>
AuthorDate:    Thu Dec 15 11:49:19 2016 -0600
Committer:     David Teigland <teigland at redhat.com>
CommitterDate: Mon Feb 13 08:20:10 2017 -0600

lvmlockd: test mode doesn't work

The --test option is not yet compatible with shared VGs
because changes are made in lvmlockd that cannot be
reversed or faked.
---
 lib/metadata/metadata.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c
index b11d306..1b500ed 100644
--- a/lib/metadata/metadata.c
+++ b/lib/metadata/metadata.c
@@ -5629,6 +5629,11 @@ static int _access_vg_lock_type(struct cmd_context *cmd, struct volume_group *vg
 		}
 	}
 
+	if (test_mode()) {
+		log_error("Test mode is not yet supported with lock type %s.", vg->lock_type);
+		return 0;
+	}
+
 	return 1;
 }
 




More information about the lvm-devel mailing list