Whamcloud - gitweb
LU-1302 llog: llog test update and fixes
[fs/lustre-release.git] / lustre / mgs / mgs_handler.c
index f7f737e..4840c31 100644 (file)
 #include <lprocfs_status.h>
 #include <lustre_fsfilt.h>
 #include <lustre_disk.h>
-#include "mgs_internal.h"
 #include <lustre_param.h>
+#include <lustre_log.h>
+
+#include "mgs_internal.h"
 
 /* Establish a connection to the MGS.*/
 static int mgs_connect(const struct lu_env *env,
@@ -924,6 +926,12 @@ int mgs_handle(struct ptlrpc_request *req)
                                 &RQF_LLOG_ORIGIN_HANDLE_NEXT_BLOCK);
                 rc = llog_origin_handle_next_block(req);
                 break;
+       case LLOG_ORIGIN_HANDLE_PREV_BLOCK:
+               DEBUG_REQ(D_MGS, req, "llog prev block");
+               req_capsule_set(&req->rq_pill,
+                               &RQF_LLOG_ORIGIN_HANDLE_PREV_BLOCK);
+               rc = llog_origin_handle_prev_block(req);
+               break;
         case LLOG_ORIGIN_HANDLE_READ_HEADER:
                 DEBUG_REQ(D_MGS, req, "llog read header");
                 req_capsule_set(&req->rq_pill,