nfs-ganesha 1.4
|
00001 /* 00002 * 00003 * Copyright (C) 2011 Linux Box Corporation 00004 * Author: Adam C. Emerson 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 3 of the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00019 * 00020 * --------------------------------------- 00021 */ 00022 00032 #ifndef _FSAL_PNFS_FILES_H 00033 #define _FSAL_PNFS_FILES_H 00034 00035 #include "nfs4.h" 00036 #include "fsal_pnfs.h" 00037 00038 /* The next 3 line are mandatory for proper autotools based management */ 00039 #ifdef HAVE_CONFIG_H 00040 #include "config.h" 00041 #endif /* HAVE_CONFIG_H */ 00042 00043 #ifdef _PNFS_DS 00044 00051 typedef struct fsal_multipath_member 00052 { 00053 uint16_t proto; 00054 uint32_t addr; 00055 uint16_t port; 00056 } fsal_multipath_member_t; 00057 00058 nfsstat4 FSAL_fh4_dshandle(fsal_handle_t *fsal_handle, 00059 unsigned short export_id, 00060 fsal_export_context_t *export, 00061 nfs_fh4 *wirehandle); 00062 00063 nfsstat4 FSAL_encode_file_layout(XDR *xdrs, 00064 fsal_op_context_t *context, 00065 const struct pnfs_deviceid *deviceid, 00066 nfl_util4 util, 00067 uint32_t first_idx, 00068 offset4 ptrn_ofst, 00069 uint32_t num_fhs, 00070 fsal_handle_t *fhs); 00071 00072 nfsstat4 FSAL_encode_v4_multipath(XDR *xdrs, 00073 uint32_t num_hosts, 00074 fsal_multipath_member_t *hosts); 00075 00076 #endif /* _PNFS_DS */ 00077 #endif /* _FSAL_PNFS_FILES_H */