nfs-ganesha 1.4

nfs4_op_openattr.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 
00038 #ifdef HAVE_CONFIG_H
00039 #include "config.h"
00040 #endif
00041 
00042 #ifdef _SOLARIS
00043 #include "solaris_port.h"
00044 #endif
00045 
00046 #include <stdio.h>
00047 #include <string.h>
00048 #include <pthread.h>
00049 #include <fcntl.h>
00050 #include <sys/file.h>           /* for having FNDELAY */
00051 #include "HashData.h"
00052 #include "HashTable.h"
00053 #include "log.h"
00054 #include "ganesha_rpc.h"
00055 #include "nfs23.h"
00056 #include "nfs4.h"
00057 #include "mount.h"
00058 #include "nfs_core.h"
00059 #include "cache_inode.h"
00060 #include "nfs_exports.h"
00061 #include "nfs_creds.h"
00062 #include "nfs_proto_functions.h"
00063 #include "nfs_tools.h"
00064 
00078 #define arg_OPENATTR4 op->nfs_argop4_u.opopenattr
00079 #define res_OPENATTR4 resp->nfs_resop4_u.opopenattr
00080 
00081 int nfs4_op_openattr(struct nfs_argop4 *op,
00082                      compound_data_t * data, struct nfs_resop4 *resp)
00083 {
00084   char __attribute__ ((__unused__)) funcname[] = "nfs4_op_openattr";
00085 
00086   resp->resop = NFS4_OP_OPENATTR;
00087   res_OPENATTR4.status = NFS4_OK;
00088 
00089   res_OPENATTR4.status = nfs4_fh_to_xattrfh(&(data->currentFH), &(data->currentFH));
00090 
00091   return res_OPENATTR4.status;
00092 }                               /* nfs4_op_openattr */
00093 
00104 void nfs4_op_openattr_Free(OPENATTR4res * resp)
00105 {
00106   /* Nothing to be done */
00107   return;
00108 }                               /* nfs4_op_openattr_Free */