From bf932d381ba3de916eabb95665e5117aa2a69ef6 Mon Sep 17 00:00:00 2001 From: John Spray Date: Tue, 13 Oct 2015 14:42:58 +0100 Subject: [PATCH] include: define a new REJECT session message A stronger equivalent of CLOSE: says this session is over, and don't try to reconnect to me. For use by MDSs that really dislike something a client is doing. Signed-off-by: John Spray --- src/common/ceph_strings.cc | 1 + src/include/ceph_fs.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/common/ceph_strings.cc b/src/common/ceph_strings.cc index d1a418d2d5c..6f262e18d4c 100644 --- a/src/common/ceph_strings.cc +++ b/src/common/ceph_strings.cc @@ -97,6 +97,7 @@ const char *ceph_session_op_name(int op) case CEPH_SESSION_RECALL_STATE: return "recall_state"; case CEPH_SESSION_FLUSHMSG: return "flushmsg"; case CEPH_SESSION_FLUSHMSG_ACK: return "flushmsg_ack"; + case CEPH_SESSION_REJECT: return "reject"; } return "???"; } diff --git a/src/include/ceph_fs.h b/src/include/ceph_fs.h index 1dd333e0f82..53ce7a55009 100644 --- a/src/include/ceph_fs.h +++ b/src/include/ceph_fs.h @@ -294,6 +294,9 @@ enum { CEPH_SESSION_FLUSHMSG, CEPH_SESSION_FLUSHMSG_ACK, CEPH_SESSION_FORCE_RO, + // A response to REQUEST_OPEN indicating that the client should + // permanently desist from contacting the MDS + CEPH_SESSION_REJECT }; extern const char *ceph_session_op_name(int op); -- 2.47.3