nfs-ganesha 1.4

nfs41_op_free_stateid.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 
00037 #ifdef HAVE_CONFIG_H
00038 #include "config.h"
00039 #endif
00040 
00041 #ifdef _SOLARIS
00042 #include "solaris_port.h"
00043 #endif
00044 
00045 #include <stdio.h>
00046 #include <string.h>
00047 #include <pthread.h>
00048 #include "HashData.h"
00049 #include "HashTable.h"
00050 #include "log.h"
00051 #include "ganesha_rpc.h"
00052 #include "nfs4.h"
00053 #include "nfs_core.h"
00054 #include "sal_functions.h"
00055 #include "nfs_proto_functions.h"
00056 #include "nfs_proto_tools.h"
00057 #include "nlm_list.h"
00058 
00076 #define arg_FREE_STATEID4 op->nfs_argop4_u.opfree_stateid
00077 #define res_FREE_STATEID4 resp->nfs_resop4_u.opfree_stateid
00078 
00079 int nfs41_op_free_stateid(struct nfs_argop4 *op, compound_data_t * data, struct nfs_resop4 *resp)
00080 {
00081   char __attribute__ ((__unused__)) funcname[] = "nfs41_op_free_stateid";
00082 
00083   /* Lock are not supported */
00084   resp->resop = NFS4_OP_FREE_STATEID;
00085   res_FREE_STATEID4.fsr_status = NFS4_OK;
00086 
00087   /* Do basic checks on a filehandle */
00088   res_FREE_STATEID4.fsr_status = nfs4_sanity_check_FH(data,0LL);
00089   /* If nfs4_sanity_check_FH is OK it'll return NFS4_OK, an error otherwise */
00090 
00091   return res_FREE_STATEID4.fsr_status;
00092 }                               /* nfs41_op_lock */
00093 
00104 void nfs41_op_free_stateid_Free(FREE_STATEID4res * resp)
00105 {
00106   return;
00107 }                               /* nfs41_op_lock_Free */