Whamcloud - gitweb
land 1.0.1 fixes on main development branch (head)
[fs/lustre-release.git] / lustre / ost / ost_handler.c
index 74a6d1d..a83592f 100644 (file)
@@ -405,7 +405,6 @@ static int ost_brw_read(struct ptlrpc_request *req)
                         lustre_swab_niobuf_remote (&remote_nb[i]);
         }
 
-        size[0] = sizeof(*body);
         rc = lustre_pack_reply(req, 1, size, NULL);
         if (rc)
                 GOTO(out, rc);
@@ -944,9 +943,6 @@ static int ost_handle(struct ptlrpc_request *req)
                 }
         }
 
-        if (strcmp(req->rq_obd->obd_type->typ_name, "ost") != 0)
-                GOTO(out, rc = -EINVAL);
-
         oti_init(oti, req);
 
         switch (req->rq_reqmsg->opc) {