Whamcloud - gitweb
small mgmt_svc tweaks
authorshaver <shaver>
Sat, 5 Jul 2003 14:50:51 +0000 (14:50 +0000)
committershaver <shaver>
Sat, 5 Jul 2003 14:50:51 +0000 (14:50 +0000)
lustre/mgmt/.cvsignore [new file with mode: 0644]
lustre/mgmt/mgmt_svc.c

diff --git a/lustre/mgmt/.cvsignore b/lustre/mgmt/.cvsignore
new file mode 100644 (file)
index 0000000..067f05c
--- /dev/null
@@ -0,0 +1,9 @@
+.Xrefs
+config.log
+config.status
+configure
+Makefile
+Makefile.in
+.deps
+tags
+TAGS
index fd59ba1..08e4aed 100644 (file)
 static int mgmt_initialized;
 static struct ptlrpc_service *mgmt_service;
 
-static int mgmt_connect(struct ptlrpc_request *req)
-{
-        int rc;
-        ENTRY;
-
-        rc = -EINVAL;
-        
-        RETURN(rc);
-}
-
 static int mgmt_ping(struct ptlrpc_request *req)
 {
+        /* handle_incoming_request will have already updated the export's
+         * last_request_time, so we don't need to do anything else.
+         */
         return lustre_pack_msg(0, NULL, NULL, &req->rq_replen, &req->rq_repmsg);
 }
 
@@ -67,7 +60,11 @@ static int mgmt_handler(struct ptlrpc_request *req)
                 break;
         case MGMT_CONNECT:
                 DEBUG_REQ(D_RPCTRACE, req, "connect");
-                rc = mgmt_connect(req);
+                rc = target_handle_connect(req, NULL /* no recovery handler */);
+                break;
+        case MGMT_DISCONNECT:
+                DEBUG_REQ(D_RPCTRACE, req, "disconnect");
+                rc = target_handle_disconnect(req);
                 break;
         default:
                 DEBUG_REQ(D_RPCTRACE, req, "UNKNOWN OP");