]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
include: define a new REJECT session message
authorJohn Spray <john.spray@redhat.com>
Tue, 13 Oct 2015 13:42:58 +0000 (14:42 +0100)
committerJohn Spray <john.spray@redhat.com>
Tue, 5 Jan 2016 14:05:04 +0000 (14:05 +0000)
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 <john.spray@redhat.com>
src/common/ceph_strings.cc
src/include/ceph_fs.h

index d1a418d2d5c280feb56fc976e607d5830e1dbbb7..6f262e18d4cff9ae37612952d1785b18a660899a 100644 (file)
@@ -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 "???";
 }
index 1dd333e0f8224780ba63720e6e222f4cba6618d9..53ce7a550092b14a2077052218c0291fcd487ddd 100644 (file)
@@ -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);