nfs-ganesha 1.4

fsal_pnfscompat.c

Go to the documentation of this file.
00001 /*
00002  * vim:expandtab:shiftwidth=8:tabstop=8:
00003  *
00004  * Copyright (C) 2010, The Linux Box Corporation
00005  * Contributor : Adam C. Emerson <aemerson@linuxbox.com>
00006  *
00007  * Some portions Copyright CEA/DAM/DIF  (2008)
00008  * contributeur : Philippe DENIEL   philippe.deniel@cea.fr
00009  *                Thomas LEIBOVICI  thomas.leibovici@cea.fr
00010  *
00011  *
00012  * This program is free software; you can redistribute it and/or
00013  * modify it under the terms of the GNU Lesser General Public
00014  * License as published by the Free Software Foundation; either
00015  * version 3 of the License, or (at your option) any later version.
00016  *
00017  * This program is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020  * Lesser General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU Lesser General Public
00023  * License along with this library; if not, write to the Free Software
00024  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00025  *
00026  * -------------
00027  */
00028 
00029 #ifdef HAVE_CONFIG_H
00030 #include "config.h"
00031 #endif
00032 
00033 #include "fsal.h"
00034 #include "fsal_types.h"
00035 #include "fsal_glue.h"
00036 #include "fsal_internal.h"
00037 #include "FSAL/common_methods.h"
00038 #ifdef _PNFS
00039 #include "fsal_pnfs.h"
00040 #endif /* _PNFS */
00041 
00042 #ifdef _PNFS_MDS
00043 fsal_mdsfunctions_t fsal_ceph_mdsfunctions = {
00044      .layoutget = CEPHFSAL_layoutget,
00045      .layoutreturn = CEPHFSAL_layoutreturn,
00046      .layoutcommit = CEPHFSAL_layoutcommit,
00047      .getdeviceinfo = CEPHFSAL_getdeviceinfo,
00048      .getdevicelist = CEPHFSAL_getdevicelist
00049 };
00050 
00051 fsal_mdsfunctions_t FSAL_GetMDSFunctions(void)
00052 {
00053      return fsal_ceph_mdsfunctions;
00054 }
00055 #endif /* _PNFS_MDS */
00056 
00057 #ifdef _PNFS_DS
00058 fsal_dsfunctions_t fsal_ceph_dsfunctions = {
00059      .DS_read = CEPHFSAL_DS_read,
00060      .DS_write = CEPHFSAL_DS_write,
00061      .DS_commit = CEPHFSAL_DS_commit
00062 };
00063 #endif /* _PNFS_DS */
00064 
00065 #ifdef _PNFS_DS
00066 fsal_dsfunctions_t FSAL_GetDSFunctions(void)
00067 {
00068      return fsal_ceph_dsfunctions;
00069 }
00070 #endif /* _PNFS_DS */