nfs-ganesha 1.4

fsal_init.c

Go to the documentation of this file.
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 
00063 fsal_status_t VFSFSAL_Init(fsal_parameter_t * init_info /* IN */
00064     )
00065 {
00066   fsal_status_t status;
00067 
00068   /* sanity check.  */
00069   if(!init_info)
00070     Return(ERR_FSAL_FAULT, 0, INDEX_FSAL_Init);
00071 
00072   /* proceeds FSAL internal 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   /* Regular exit */
00082   Return(ERR_FSAL_NO_ERROR, 0, INDEX_FSAL_Init);
00083 
00084 }