nfs-ganesha 1.4
|
00001 /* 00002 * vim:expandtab:shiftwidth=8:tabstop=8: 00003 * 00004 * Copyright CEA/DAM/DIF (2008) 00005 * contributeur : Philippe DENIEL philippe.deniel@cea.fr 00006 * Thomas LEIBOVICI thomas.leibovici@cea.fr 00007 * 00008 * 00009 * This program is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU Lesser General Public 00011 * License as published by the Free Software Foundation; either 00012 * version 3 of the License, or (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 * Lesser General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU Lesser General Public 00020 * License along with this library; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00022 * 00023 * ------------- 00024 */ 00025 00035 #ifdef HAVE_CONFIG_H 00036 #include "config.h" 00037 #endif 00038 00039 #include "fsal.h" 00040 #include "fsal_internal.h" 00041 #include <sys/types.h> 00042 #include <sys/stat.h> 00043 #include <fcntl.h> 00044 00066 fsal_status_t GPFSFSAL_Init(fsal_parameter_t * init_info /* IN */ 00067 ) 00068 { 00069 fsal_status_t status; 00070 00071 /* sanity check. */ 00072 if(!init_info) 00073 Return(ERR_FSAL_FAULT, 0, INDEX_FSAL_Init); 00074 00075 /* proceeds FSAL internal initialization */ 00076 status = fsal_internal_init_global(&(init_info->fsal_info), 00077 &(init_info->fs_common_info), 00078 &(init_info->fs_specific_info)); 00079 if(FSAL_IS_ERROR(status)) 00080 Return(status.major, status.minor, INDEX_FSAL_Init); 00081 00082 /* Regular exit */ 00083 Return(ERR_FSAL_NO_ERROR, 0, INDEX_FSAL_Init); 00084 00085 }