Skip to content
Snippets Groups Projects
Commit 48e43df7 authored by huanghua's avatar huanghua
Browse files

Branch b1_8_gate

b=11930
i=adilger
i=nikita.danilov
i=alex
parent 90e62725
No related branches found
No related tags found
No related merge requests found
......@@ -42,11 +42,23 @@ void mdc_link_pack(struct ptlrpc_request *req, int offset,
void mdc_rename_pack(struct ptlrpc_request *req, int offset,
struct mdc_op_data *data,
const char *old, int oldlen, const char *new, int newlen);
void mdc_close_pack(struct ptlrpc_request *req, int offset, struct obdo *oa,
void mdc_close_pack(struct ptlrpc_request *req, int offset,
struct mdc_op_data *data,
struct obdo *oa,
__u64 valid, struct obd_client_handle *och);
void mdc_exit_request(struct client_obd *cli);
void mdc_enter_request(struct client_obd *cli);
int seq_client_init(struct lu_client_seq *seq,
struct obd_export *exp,
enum lu_cli_type type,
__u64 width,
const char *prefix);
void seq_client_fini(struct lu_client_seq *seq);
int mdc_fid_alloc(struct lu_client_seq *seq, struct lu_fid *fid);
struct mdc_open_data {
struct obd_client_handle *mod_och;
struct ptlrpc_request *mod_open_req;
......@@ -85,3 +97,13 @@ static inline void mdc_put_rpc_lock(struct mdc_rpc_lock *lck,
}
EXIT;
}
static inline int mdc_exp_is_2_0_server(struct obd_export *exp) {
LASSERT(exp);
return !!(exp->exp_connect_flags & OBD_CONNECT_FID);
}
static inline int mdc_req_is_2_0_server(struct ptlrpc_request *req) {
LASSERT(req);
return mdc_exp_is_2_0_server(req->rq_export);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment