nfs-ganesha 1.4
|
00001 /* 00002 * Copyright (C) 2010 The Linx Box Corporation 00003 * Contributor : Adam C. Emerson 00004 * 00005 * Some Portions Copyright CEA/DAM/DIF (2008) 00006 * contributeur : Philippe DENIEL philippe.deniel@cea.fr 00007 * Thomas LEIBOVICI thomas.leibovici@cea.fr 00008 * 00009 * 00010 * This program is free software; you can redistribute it and/or 00011 * modify it under the terms of the GNU Lesser General Public 00012 * License as published by the Free Software Foundation; either 00013 * version 3 of the License, or (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 * Lesser General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU Lesser General Public 00021 * License along with this library; if not, write to the Free Software 00022 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00023 * 00024 * --------------------------------------- 00025 */ 00026 00033 #ifdef HAVE_CONFIG_H 00034 #include "config.h" 00035 #endif 00036 00037 #include "fsal.h" 00038 #include "fsal_internal.h" 00039 00061 fsal_status_t CEPHFSAL_Init(fsal_parameter_t * init_info) 00062 { 00063 fsal_status_t status; 00064 00065 /* sanity check. */ 00066 00067 if(!init_info) 00068 Return(ERR_FSAL_FAULT, 0, INDEX_FSAL_Init); 00069 00070 /* >> You can check args bellow << */ 00071 00072 /* proceeds FSAL internal status initialization */ 00073 00074 status = fsal_internal_init_global(&(init_info->fsal_info), 00075 &(init_info->fs_common_info), 00076 &(init_info->fs_specific_info)); 00077 00078 if(FSAL_IS_ERROR(status)) 00079 Return(status.major, status.minor, INDEX_FSAL_Init); 00080 00081 /* Everything went OK. */ 00082 00083 Return(ERR_FSAL_NO_ERROR, 0, INDEX_FSAL_Init); 00084 00085 } 00086 00087 /* To be called before exiting */ 00088 fsal_status_t CEPHFSAL_terminate() 00089 { 00090 ReturnCode(ERR_FSAL_NO_ERROR, 0); 00091 }