From: John Spray Date: Tue, 13 Oct 2015 13:42:58 +0000 (+0100) Subject: include: define a new REJECT session message X-Git-Tag: v10.0.3~48^2~4^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bf932d381ba3de916eabb95665e5117aa2a69ef6;p=ceph.git 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 --- 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);