From f6f51dac1fda455f339500bb12c98ddbcb122624 Mon Sep 17 00:00:00 2001 From: shaver Date: Sat, 5 Jul 2003 14:50:51 +0000 Subject: [PATCH] small mgmt_svc tweaks --- lustre/mgmt/.cvsignore | 9 +++++++++ lustre/mgmt/mgmt_svc.c | 19 ++++++++----------- 2 files changed, 17 insertions(+), 11 deletions(-) create mode 100644 lustre/mgmt/.cvsignore diff --git a/lustre/mgmt/.cvsignore b/lustre/mgmt/.cvsignore new file mode 100644 index 0000000..067f05c --- /dev/null +++ b/lustre/mgmt/.cvsignore @@ -0,0 +1,9 @@ +.Xrefs +config.log +config.status +configure +Makefile +Makefile.in +.deps +tags +TAGS diff --git a/lustre/mgmt/mgmt_svc.c b/lustre/mgmt/mgmt_svc.c index fd59ba1..08e4aed 100644 --- a/lustre/mgmt/mgmt_svc.c +++ b/lustre/mgmt/mgmt_svc.c @@ -40,18 +40,11 @@ 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"); -- 1.8.3.1