nfs-ganesha 1.4

mnt_Dump.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 
00034 #ifdef HAVE_CONFIG_H
00035 #include "config.h"
00036 #endif
00037 
00038 #ifdef _SOLARIS
00039 #include "solaris_port.h"
00040 #endif
00041 
00042 #include <stdio.h>
00043 #include <string.h>
00044 #include <pthread.h>
00045 #include <fcntl.h>
00046 #include <sys/file.h>           /* for having FNDELAY */
00047 #include "HashData.h"
00048 #include "HashTable.h"
00049 #include "log.h"
00050 #include "nfs23.h"
00051 #include "nfs4.h"
00052 #include "nfs_core.h"
00053 #include "cache_inode.h"
00054 #include "nfs_exports.h"
00055 #include "nfs_creds.h"
00056 #include "nfs_tools.h"
00057 #include "mount.h"
00058 #include "nfs_proto_functions.h"
00059 
00072 int mnt_Dump(nfs_arg_t *parg,
00073              exportlist_t *pexport,
00074              fsal_op_context_t *pcontext,
00075              nfs_worker_data_t *pworker,
00076              struct svc_req *preq,
00077              nfs_res_t * pres)
00078 {
00079   LogDebug(COMPONENT_NFSPROTO, "REQUEST PROCESSING: Calling mnt_Dump");
00080 
00081   /* Get the root of the mount list */
00082   pres->res_dump = nfs_Get_MountList();
00083 
00084   return NFS_REQ_OK;
00085 }                               /* mnt_Null */
00086 
00095 void mnt_Dump_Free(nfs_res_t * pres)
00096 {
00097   /* Nothing to do */
00098   return;
00099 }                               /* mnt_Dump_Free */