nfs-ganesha 1.4
|
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 "sal_functions.h" 00043 00060 int nfs41_op_destroy_session(struct nfs_argop4 *op, 00061 compound_data_t * data, struct nfs_resop4 *resp) 00062 { 00063 00064 #define arg_DESTROY_SESSION4 op->nfs_argop4_u.opdestroy_session 00065 #define res_DESTROY_SESSION4 resp->nfs_resop4_u.opdestroy_session 00066 00067 resp->resop = NFS4_OP_DESTROY_SESSION; 00068 res_DESTROY_SESSION4.dsr_status = NFS4_OK; 00069 00070 if(!nfs41_Session_Del(arg_DESTROY_SESSION4.dsa_sessionid)) 00071 res_DESTROY_SESSION4.dsr_status = NFS4ERR_BADSESSION; 00072 else 00073 res_DESTROY_SESSION4.dsr_status = NFS4_OK; 00074 00075 return res_DESTROY_SESSION4.dsr_status; 00076 } /* nfs41_op_destroy_session */ 00077 00088 void nfs41_op_destroy_session_Free(DESTROY_SESSION4res * resp) 00089 { 00090 /* To be completed */ 00091 return; 00092 } /* nfs41_op_destroy_session_Free */