nfs-ganesha 1.4
|
00001 /* 00002 * Copyright (C) 2010 The Linx Box Corporation 00003 * Contributor : Adam C. Emerson 00004 * 00005 * Some Portions Copyright CEA/DAM/DIF (2008) 00006 * contributeur : Philippe DENIEL philippe.deniel@cea.fr 00007 * Thomas LEIBOVICI thomas.leibovici@cea.fr 00008 * 00009 * 00010 * This program is free software; you can redistribute it and/or 00011 * modify it under the terms of the GNU Lesser General Public 00012 * License as published by the Free Software Foundation; either 00013 * version 3 of the License, or (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 * Lesser General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU Lesser General Public 00021 * License along with this library; if not, write to the Free Software 00022 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00023 * 00024 * --------------------------------------- 00025 */ 00026 00037 #ifdef HAVE_CONFIG_H 00038 #include "config.h" 00039 #endif 00040 00041 #include "fsal.h" 00042 #include "fsal_internal.h" 00043 #include "fsal_convert.h" 00044 00077 fsal_status_t CEPHFSAL_test_access(fsal_op_context_t * extcontext, 00078 fsal_accessflags_t access_type, 00079 fsal_attrib_list_t * object_attributes) 00080 { 00081 cephfsal_op_context_t* context = (cephfsal_op_context_t*) extcontext; 00082 fsal_status_t status; 00083 status = fsal_internal_testAccess(context, access_type, NULL, 00084 object_attributes); 00085 Return(status.major, status.minor, INDEX_FSAL_test_access); 00086 } 00087