nfs-ganesha 1.4

nfs_init.h

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 
00033 #ifndef _NFS_INIT_H
00034 #define _NFS_INIT_H
00035 
00036 #include "log.h"
00037 #include "nfs_core.h"
00038 
00039 /* setting this variable to TRUE causes datacache
00040  * to be flushed by garbage collector.
00041  */
00042 extern unsigned int force_flush_by_signal;
00043 
00044 typedef struct __nfs_start_info
00045 {
00046   int dump_default_config;
00047   int lw_mark_trigger;
00048 } nfs_start_info_t;
00049 
00054 void nfs_prereq_init(char *program_name, char *host_name, int debug_level, char *log_path);
00055 
00060 void nfs_set_param_default();
00061 
00066 int nfs_set_param_from_conf(nfs_start_info_t * p_start_info);
00067 
00072 int nfs_check_param_consistency();
00073 
00078 void nfs_start(nfs_start_info_t * p_start_info);
00079 
00080 int nfs_get_fsalpathlib_conf(char *configPath,  path_str_t * PathLib, unsigned int *plen) ;
00081 
00082 #endif