nfs-ganesha 1.4
Functions

cache_inode_rdwr.c File Reference

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.

Detailed Description

Removes an entry of any type.

Author:
Author:
deniel
Date:
Date:
2005/11/28 17:02:27
Version:
Revision:
1.20

cache_inode_rdwr.c : performs an IO on a REGULAR_FILE.

Definition in file cache_inode_rdwr.c.


Function Documentation

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.

Parameters:
[in]entryFile to be read or written
[in]io_directionWhether this is a read or a write
[in]offsetAbsolute file position for I/O
[in]io_sizeAmount of data to be read or written
[out]bytes_movedThe length of data successfuly read or written
[in,out]bufferWhere in memory to read or write data
[out]eofWhether a READ encountered the end of file. May be NULL for writes.
[in]contextFSAL credentials
[in]stableThe stability of the write to perform
[out]statusStatus of operation
Returns:
CACHE_INODE_SUCCESS or various errors

Definition at line 86 of file cache_inode_rdwr.c.