nfs-ganesha 1.4
Functions

cache_inode_access.c File Reference

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.

Detailed Description

Check for object accessibility.

Author:
Author:
deniel
Date:
Date:
2005/11/28 17:02:26
Version:
Revision:
1.19

cache_inode_access.c : Check for object accessibility.

Definition in file cache_inode_access.c.


Function Documentation

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.

Parameters:
[in]entryThe object to be checked
[in]access_typeThe kind of access to be checked
[in]contextFSAL credentials
[in]statusReturned status
Returns:
CACHE_INODE_SUCCESS if operation is a success

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.

Parameters:
[in]entryentry pointer for the fs object to be checked.
[in]access_typeThe kind of access to be checked
[in]contextFSAL credentials
[out]statusReturned status
Returns:
CACHE_INODE_SUCCESS if operation is a success

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.

Parameters:
[in]entryThe object to be checked
[in]access_typeThe kind of access to be checked
[in]contextFSAL context
[out]statusReturned status
[in]use_mutexWhether to acquire a read lock
Returns:
CACHE_INODE_SUCCESS if operation is a success

Definition at line 75 of file cache_inode_access.c.