#define OBD_FAIL_FLD 0x1100
#define OBD_FAIL_FLD_QUERY_NET 0x1101
+#define OBD_FAIL_SEC_CTX_INIT_NET 0x1200
+#define OBD_FAIL_SEC_CTX_INIT_CONT_NET 0x1210
+#define OBD_FAIL_SEC_CTX_FINI_NET 0x1220
+
/* preparation for a more advanced failure testbed (not functional yet) */
#define OBD_FAIL_MASK_SYS 0x0000FF00
#define OBD_FAIL_MASK_LOC (0x000000FF | OBD_FAIL_MASK_SYS)
return -EOPNOTSUPP;
}
+/*
+ * sec context handlers
+ */
+static int mdt_sec_ctx_handle(struct mdt_thread_info *info)
+{
+ return 0;
+}
+
/* issues dlm lock on passed @ns, @f stores it lock handle into @lh. */
int fid_lock(struct ldlm_namespace *ns, const struct lu_fid *f,
struct lustre_handle *lh, ldlm_mode_t mode,
static struct mdt_handler mdt_llog_ops[] = {
};
-static struct mdt_handler mdt_sec_ops[] = {
+#define DEF_SEC_CTX_HNDL(name, fn) \
+ DEF_HNDL(SEC_CTX, INIT, _NET, 0, name, fn, NULL)
+
+static struct mdt_handler mdt_sec_ctx_ops[] = {
+ DEF_SEC_CTX_HNDL(INIT, mdt_sec_ctx_handle),
+ DEF_SEC_CTX_HNDL(INIT_CONT, mdt_sec_ctx_handle),
+ DEF_SEC_CTX_HNDL(FINI, mdt_sec_ctx_handle)
};
static struct mdt_opc_slice mdt_regular_handlers[] = {
{
.mos_opc_start = SEC_CTX_INIT,
.mos_opc_end = SEC_LAST_OPC,
- .mos_hs = mdt_sec_ops
+ .mos_hs = mdt_sec_ctx_ops
},
{
.mos_hs = NULL