master - lvmetad: Make "reason" in a token_mismatch reply more informative.
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=4143b284f8871b57b416eeab795489fcc66ed017 Commit: 4143b284f8871b57b416eeab795489fcc66ed017 Parent: 40e6176d251b68f5be8ca7925a2f073982de6cec Author: Petr Rockai <[email protected]> AuthorDate: Wed Feb 26 15:10:21 2014 +0100 Committer: Petr Rockai <[email protected]> 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(-)
daemons/lvmetad/lvmetad-core.c +2 -1
@@ -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);