nfs-ganesha 1.4
|
Removes an entry of any type. More...
#include "fsal.h"
#include "LRU_List.h"
#include "log.h"
#include "HashData.h"
#include "HashTable.h"
#include "cache_inode.h"
#include "cache_inode_lru.h"
#include "nfs_core.h"
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/param.h>
#include <time.h>
#include <pthread.h>
#include <assert.h>
Go to the source code of this file.
Functions | |
cache_inode_status_t | cache_inode_rdwr (cache_entry_t *entry, cache_inode_io_direction_t io_direction, uint64_t offset, size_t io_size, size_t *bytes_moved, void *buffer, bool_t *eof, fsal_op_context_t *context, cache_inode_stability_t stable, cache_inode_status_t *status) |
Reads/Writes through the cache layer. |
Removes an entry of any type.
cache_inode_rdwr.c : performs an IO on a REGULAR_FILE.
Definition in file cache_inode_rdwr.c.
cache_inode_status_t cache_inode_rdwr | ( | cache_entry_t * | entry, |
cache_inode_io_direction_t | io_direction, | ||
uint64_t | offset, | ||
size_t | io_size, | ||
size_t * | bytes_moved, | ||
void * | buffer, | ||
bool_t * | eof, | ||
fsal_op_context_t * | context, | ||
cache_inode_stability_t | stable, | ||
cache_inode_status_t * | status | ||
) |
Reads/Writes through the cache layer.
This function performs I/O, either using the Ganesha in-memory or disk cache or through the FSAL directly. The caller MUST NOT hold either the content or attribute locks when calling this function.
[in] | entry | File to be read or written |
[in] | io_direction | Whether this is a read or a write |
[in] | offset | Absolute file position for I/O |
[in] | io_size | Amount of data to be read or written |
[out] | bytes_moved | The length of data successfuly read or written |
[in,out] | buffer | Where in memory to read or write data |
[out] | eof | Whether a READ encountered the end of file. May be NULL for writes. |
[in] | context | FSAL credentials |
[in] | stable | The stability of the write to perform |
[out] | status | Status of operation |
Definition at line 86 of file cache_inode_rdwr.c.