Whamcloud - gitweb
Branch b1_8_gate
authoryangsheng <yangsheng>
Fri, 17 Oct 2008 07:47:50 +0000 (07:47 +0000)
committeryangsheng <yangsheng>
Fri, 17 Oct 2008 07:47:50 +0000 (07:47 +0000)
b=17151
i=nathan, adilger
patch provide by LLNL

Validate ptlrpc body checksum before swabbing.

lustre/ptlrpc/ptlrpc_internal.h

index 0097a53..dac0f11 100644 (file)
@@ -63,6 +63,8 @@ void ptlrpc_handle_failed_import(struct obd_import *imp);
 int ptlrpc_replay_next(struct obd_import *imp, int *inflight);
 void ptlrpc_initiate_recovery(struct obd_import *imp);
 
+int lustre_msg_need_swab(struct lustre_msg *msg);
+int lustre_unpack_msg_ptlrpc_body(struct lustre_msg *msg, int offset, int swab);
 int lustre_unpack_req_ptlrpc_body(struct ptlrpc_request *req, int offset);
 int lustre_unpack_rep_ptlrpc_body(struct ptlrpc_request *req, int offset);