@@ -38,7 +38,8 @@
*/
#include <linux/nfsd/nfsd4_pnfs.h>
-#include <linux/pnfs_osd_xdr.h>
+
+#include "linux/nfsd/pnfs_osd_xdr_srv.h"
/*
* struct pnfs_osd_data_map {
new file mode 100644
@@ -0,0 +1,17 @@
+#include <linux/pnfs_osd_xdr.h>
+#include <linux/exp_xdr.h>
+
+/* Layout encoding */
+extern int pnfs_osd_xdr_encode_layout(
+ struct exp_xdr_stream *xdr,
+ struct pnfs_osd_layout *layout);
+
+/* deviceaddr for Servers */
+extern int pnfs_osd_xdr_encode_deviceaddr(
+ struct exp_xdr_stream *xdr, struct pnfs_osd_deviceaddr *devaddr);
+
+extern __be32 * pnfs_osd_xdr_decode_layoutupdate(
+ struct pnfs_osd_layoutupdate *lou, __be32 *p);
+
+extern bool pnfs_osd_xdr_decode_ioerr(
+ struct pnfs_osd_ioerr *ioerr, struct exp_xdr_stream *xdr);
Server XDR definitions are defined in there own header Signed-off-by: Boaz Harrosh <bharrosh@panasas.com> --- fs/exportfs/pnfs_osd_xdr_srv.c | 3 ++- include/linux/nfsd/pnfs_osd_xdr_srv.h | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletions(-) create mode 100644 include/linux/nfsd/pnfs_osd_xdr_srv.h