[lvm-devel] master - lvmetad: Make "reason" in a token_mismatch reply more informative.

Petr Rockai mornfall at fedoraproject.org
Wed Feb 26 14:13:24 UTC 2014


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=4143b284f8871b57b416eeab795489fcc66ed017
Commit:        4143b284f8871b57b416eeab795489fcc66ed017
Parent:        40e6176d251b68f5be8ca7925a2f073982de6cec
Author:        Petr Rockai <me at mornfall.net>
AuthorDate:    Wed Feb 26 15:10:21 2014 +0100
Committer:     Petr Rockai <me at mornfall.net>
CommitterDate: Wed Feb 26 15:10:21 2014 +0100

lvmetad: Make "reason" in a token_mismatch reply more informative.

---
 daemons/lvmetad/lvmetad-core.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/daemons/lvmetad/lvmetad-core.c b/daemons/lvmetad/lvmetad-core.c
index ab0573f..e6e222f 100644
--- a/daemons/lvmetad/lvmetad-core.c
+++ b/daemons/lvmetad/lvmetad-core.c
@@ -1095,7 +1095,8 @@ static response handler(daemon_state s, client_handle h, request r)
 		return daemon_reply_simple("token_mismatch",
 					   "expected = %s", state->token,
 					   "received = %s", token,
-					   "reason = %s", "token mismatch", NULL);
+					   "reason = %s",
+					   "lvmetad cache is invalid due to a global_filter change or due to a running rescan", NULL);
 	}
 	pthread_mutex_unlock(&state->token_lock);
 




More information about the lvm-devel mailing list