-void mdc_pack_req_body(struct ptlrpc_request *);
-void mdc_pack_rep_body(struct ptlrpc_request *);
-void mdc_readdir_pack(struct ptlrpc_request *req, __u64 offset, __u32 size,
- struct ll_fid *mdc_fid);
-void mdc_getattr_pack(struct ptlrpc_request *req, int valid, int offset,
- int flags, struct mdc_op_data *data);
-void mdc_setattr_pack(struct ptlrpc_request *req,
- struct mdc_op_data *data,
- struct iattr *iattr, void *ea, int ealen,
- void *ea2, int ea2len);
-void mdc_create_pack(struct ptlrpc_request *req, int offset,
- struct mdc_op_data *op_data, __u32 mode, __u64 rdev,
- const void *data, int datalen);
-void mdc_open_pack(struct ptlrpc_request *req, int offset,
+/* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
+ * vim:expandtab:shiftwidth=8:tabstop=8:
+ *
+ * Copyright (c) 2003 Cluster File Systems, Inc.
+ *
+ * This file is part of Lustre, http://www.lustre.org.
+ *
+ * Lustre is free software; you can redistribute it and/or
+ * modify it under the terms of version 2 of the GNU General Public
+ * License as published by the Free Software Foundation.
+ *
+ * Lustre is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Lustre; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+#ifndef MDC_INTERNAL_H
+#define MDC_INTERNAL_H
+
+void mdc_getattr_pack(struct lustre_msg *msg, int offset,
+ int valid, int flags, struct mdc_op_data *data);
+void mdc_open_pack(struct lustre_msg *msg, int offset,
struct mdc_op_data *op_data, __u32 mode, __u64 rdev,
- __u32 flags, const void *data, int datalen);
-void mdc_unlink_pack(struct ptlrpc_request *req, int offset,
- struct mdc_op_data *data);
-void mdc_link_pack(struct ptlrpc_request *req, int offset,
- struct mdc_op_data *data);
-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);
+ __u32 flags, const void *lmm, int lmmlen);
+void mdc_readdir_pack(struct ptlrpc_request *req, int req_offset,
+ __u64 offset, __u32 size, struct ll_fid *mdc_fid);
+void mdc_close_pack(struct ptlrpc_request *req, int offset, struct obdo *oa,
+ int valid, struct obd_client_handle *och);
struct mdc_open_data {
struct obd_client_handle *mod_och;
up(&lck->rpcl_sem);
}
}
+
+#endif /* MDC_INTERNAL_H */