From patchwork Tue Jun 14 21:36:07 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boaz Harrosh X-Patchwork-Id: 880272 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p5ELZrMP017004 for ; Tue, 14 Jun 2011 21:36:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754054Ab1FNVgJ (ORCPT ); Tue, 14 Jun 2011 17:36:09 -0400 Received: from daytona.panasas.com ([67.152.220.89]:38119 "EHLO daytona.panasas.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754004Ab1FNVgI (ORCPT ); Tue, 14 Jun 2011 17:36:08 -0400 Received: from yafyuf.citi.umich.edu ([172.17.33.117]) by daytona.panasas.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 14 Jun 2011 17:36:07 -0400 From: Boaz Harrosh To: Benny Halevy , open-osd , NFS list Subject: [PATCH 03/10] SQUASHME: pnfsd-exofs: Prettify pnfs_osd_xdr_srv.h Date: Tue, 14 Jun 2011 17:36:07 -0400 Message-Id: <1308087367-13123-1-git-send-email-bharrosh@panasas.com> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <4DF7D36F.9070602@panasas.com> References: <4DF7D36F.9070602@panasas.com> X-OriginalArrivalTime: 14 Jun 2011 21:36:07.0893 (UTC) FILETIME=[123A8050:01CC2ADB] Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 14 Jun 2011 21:36:10 +0000 (UTC) Signed-off-by: Boaz Harrosh --- include/linux/nfsd/pnfs_osd_xdr_srv.h | 29 ++++++++++++++++++++++++----- 1 files changed, 24 insertions(+), 5 deletions(-) diff --git a/include/linux/nfsd/pnfs_osd_xdr_srv.h b/include/linux/nfsd/pnfs_osd_xdr_srv.h index 65de588..256a7e07 100644 --- a/include/linux/nfsd/pnfs_osd_xdr_srv.h +++ b/include/linux/nfsd/pnfs_osd_xdr_srv.h @@ -1,17 +1,36 @@ +/* + * pnfs-objects Server XDR definitions and API + * + * Copyright (C) from 2011 Panasas Inc. All rights reserved. + * + * Authors: + * Boaz Harrosh + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 + * + */ +#ifndef __PNFS_OSD_XDR_SRV_H__ +#define __PNFS_OSD_XDR_SRV_H__ + #include #include /* Layout encoding */ -extern int pnfs_osd_xdr_encode_layout( +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( +/* deviceaddr encoding */ +int pnfs_osd_xdr_encode_deviceaddr( struct exp_xdr_stream *xdr, struct pnfs_osd_deviceaddr *devaddr); -extern __be32 * pnfs_osd_xdr_decode_layoutupdate( +/* layout_commit decoding */ +__be32 * pnfs_osd_xdr_decode_layoutupdate( struct pnfs_osd_layoutupdate *lou, __be32 *p); -extern bool pnfs_osd_xdr_decode_ioerr( +/* layout_return decoding */ +bool pnfs_osd_xdr_decode_ioerr( struct pnfs_osd_ioerr *ioerr, struct exp_xdr_stream *xdr); + +#endif /* __PNFS_OSD_XDR_SRV_H__ */