nfs-ganesha 1.4
|
Check for object accessibility. More...
#include "LRU_List.h"
#include "log.h"
#include "HashData.h"
#include "HashTable.h"
#include "fsal.h"
#include "cache_inode.h"
#include "abstract_mem.h"
#include <unistd.h>
#include <sys/types.h>
#include <sys/param.h>
#include <time.h>
#include <pthread.h>
Go to the source code of this file.
Functions | |
cache_inode_status_t | cache_inode_access_sw (cache_entry_t *entry, fsal_accessflags_t access_type, fsal_op_context_t *context, cache_inode_status_t *status, int use_mutex) |
Checks the permissions on an object. | |
cache_inode_status_t | cache_inode_access_no_mutex (cache_entry_t *entry, fsal_accessflags_t access_type, fsal_op_context_t *context, cache_inode_status_t *status) |
Checks entry permissions without taking a lock. | |
cache_inode_status_t | cache_inode_access (cache_entry_t *entry, fsal_accessflags_t access_type, fsal_op_context_t *context, cache_inode_status_t *status) |
Checks permissions on an entry. |
Check for object accessibility.
cache_inode_access.c : Check for object accessibility.
Definition in file cache_inode_access.c.
cache_inode_status_t cache_inode_access | ( | cache_entry_t * | entry, |
fsal_accessflags_t | access_type, | ||
fsal_op_context_t * | context, | ||
cache_inode_status_t * | status | ||
) |
Checks permissions on an entry.
This function acquires the attribute lock on the supplied cach entry then checks if the supplied credentials are sufficient to gain the supplied access.
[in] | entry | The object to be checked |
[in] | access_type | The kind of access to be checked |
[in] | context | FSAL credentials |
[in] | status | Returned status |
Definition at line 191 of file cache_inode_access.c.
cache_inode_status_t cache_inode_access_no_mutex | ( | cache_entry_t * | entry, |
fsal_accessflags_t | access_type, | ||
fsal_op_context_t * | context, | ||
cache_inode_status_t * | status | ||
) |
Checks entry permissions without taking a lock.
This function checks whether the specified permissions are available on the object. This function may only be called if an attribute lock is held.
[in] | entry | entry pointer for the fs object to be checked. |
[in] | access_type | The kind of access to be checked |
[in] | context | FSAL credentials |
[out] | status | Returned status |
Definition at line 166 of file cache_inode_access.c.
cache_inode_status_t cache_inode_access_sw | ( | cache_entry_t * | entry, |
fsal_accessflags_t | access_type, | ||
fsal_op_context_t * | context, | ||
cache_inode_status_t * | status, | ||
int | use_mutex | ||
) |
Checks the permissions on an object.
This function returns success if the supplied credentials possess permission required to meet the specified access.
[in] | entry | The object to be checked |
[in] | access_type | The kind of access to be checked |
[in] | context | FSAL context |
[out] | status | Returned status |
[in] | use_mutex | Whether to acquire a read lock |
Definition at line 75 of file cache_inode_access.c.