nfs-ganesha 1.4
|
#include "fsal.h"
#include "fsal_internal.h"
#include "fsal_convert.h"
#include "nfsv41.h"
#include <fcntl.h>
#include "HashTable.h"
#include <pthread.h>
#include "fsal_types.h"
#include "fsal_pnfs.h"
#include "pnfs_common.h"
#include "fsal_pnfs_files.h"
Go to the source code of this file.
Defines | |
#define | min(a, b) |
Functions | |
nfsstat4 | LUSTREFSAL_DS_read (fsal_handle_t *pfsalhandle, fsal_op_context_t *pfsalcontext, const stateid4 *stateid, offset4 offset, count4 requested_length, caddr_t buffer, count4 *pread_length, fsal_boolean_t *end_of_file) |
nfsstat4 | LUSTREFSAL_DS_write (fsal_handle_t *pfsalhandle, fsal_op_context_t *pfsalcontext, const stateid4 *stateid, offset4 offset, count4 write_length, caddr_t buffer, stable_how4 stability_wanted, count4 *pwritten_length, verifier4 writeverf, stable_how4 *stability_got) |
nfsstat4 | LUSTREFSAL_DS_commit (fsal_handle_t *pfsalhandle, fsal_op_context_t *pfsalcontext, offset4 offset, count4 count, verifier4 writeverf) |
#define min | ( | a, | |
b | |||
) |
({ typeof (a) _a = (a); \ typeof (b) _b = (b); \ _a < _b ? _a : _b; })
Definition at line 50 of file FSAL_LUSTRE/fsal_ds.c.
nfsstat4 LUSTREFSAL_DS_commit | ( | fsal_handle_t * | pfsalhandle, |
fsal_op_context_t * | pfsalcontext, | ||
offset4 | offset, | ||
count4 | count, | ||
verifier4 | writeverf | ||
) |
LUSTREFSAL_DS_commit : commits an DS's unstable write.
This function commits an unstable write by the pNFS Data Server.
[IN] | pfsalhandle : handle for the object to be written |
[IN] | pfsalcontent : FSAL's operation context |
[IN] | offset : offset for this IO |
[IN] | count : length to be commited |
[IN] | verifier: operation's verifier (Why is this needed ?) |
Definition at line 155 of file FSAL_LUSTRE/fsal_ds.c.
nfsstat4 LUSTREFSAL_DS_read | ( | fsal_handle_t * | pfsalhandle, |
fsal_op_context_t * | pfsalcontext, | ||
const stateid4 * | stateid, | ||
offset4 | offset, | ||
count4 | requested_length, | ||
caddr_t | buffer, | ||
count4 * | pread_length, | ||
fsal_boolean_t * | end_of_file | ||
) |
LUSTREFSAL_DS_read : the DS reads data to the FSAL.
This function is used by the pNFS Data Server to write data to the FSAL.
[IN] | pfsalhandle : handle for the object to be written |
[IN] | pfsalcontent : FSAL's operation context |
[IN] | stateid : pointer to the stateid to be used (Why is this needed ?) |
[IN] | offset : offset for this IO |
[IN] | requested_length : length to be read |
[OUT] | buffer : place to put read data in |
[OUT] | pread_length: length actually read |
[IN] | verifier: operation's verifier (Why is this needed ?) |
[OUT] | end_of_file : set to TRUE if eof is reached. |
Definition at line 74 of file FSAL_LUSTRE/fsal_ds.c.
nfsstat4 LUSTREFSAL_DS_write | ( | fsal_handle_t * | pfsalhandle, |
fsal_op_context_t * | pfsalcontext, | ||
const stateid4 * | stateid, | ||
offset4 | offset, | ||
count4 | write_length, | ||
caddr_t | buffer, | ||
stable_how4 | stability_wanted, | ||
count4 * | pwritten_length, | ||
verifier4 | writeverf, | ||
stable_how4 * | stability_got | ||
) |
LUSTREFSAL_DS_write : the DS writes data to the FSAL.
This function is used by the pNFS Data Server to write data to the FSAL.
[IN] | pfsalhandle : handle for the object to be written |
[IN] | pfsalcontent : FSAL's operation context |
[IN] | stateid : pointer to the stateid to be used (Why is this needed ?) |
[IN] | offset : offset for this IO |
[IN] | write_length : length to be written |
[IN] | buffer : data to be written |
[IN] | stability_wanted: "stable how" flag for this IO |
[OUT] | pwritten_length: length actually written |
[IN] | verifier: operation's verifier (Why is this needed ?) |
[OUT] | stability_got: the "stable_how" that was used for this IO |
Definition at line 116 of file FSAL_LUSTRE/fsal_ds.c.