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 00042 00064 fsal_status_t XFSFSAL_Init(fsal_parameter_t * init_info /* IN */ 00065 ) 00066 { 00067 fsal_status_t status; 00068 00069 /* sanity check. */ 00070 if(!init_info) 00071 Return(ERR_FSAL_FAULT, 0, INDEX_FSAL_Init); 00072 00073 /* proceeds FSAL internal initialization */ 00074 00075 status = fsal_internal_init_global(&(init_info->fsal_info), 00076 &(init_info->fs_common_info), 00077 (xfsfs_specific_initinfo_t *) & (init_info-> 00078 fs_specific_info)); 00079 00080 if(FSAL_IS_ERROR(status)) 00081 Return(status.major, status.minor, INDEX_FSAL_Init); 00082 00083 /* Regular exit */ 00084 Return(ERR_FSAL_NO_ERROR, 0, INDEX_FSAL_Init); 00085 00086 }