ReactOS 0.4.16-dev-320-g3bd9ddc
|
Go to the source code of this file.
Classes | |
struct | __pnfs_device |
struct | __pnfs_stripe_indices |
struct | __pnfs_data_server |
struct | __pnfs_data_server_list |
struct | __pnfs_file_device |
struct | __pnfs_layout_state |
struct | __pnfs_layout |
struct | __pnfs_file_layout_handles |
struct | __pnfs_file_layout |
Macros | |
#define | PNFS_ENABLE_READ |
#define | PNFS_ENABLE_WRITE |
#define | PNFS_THREADING |
#define | NFL4_UFLG_MASK 0x0000003F |
#define | NFL4_UFLG_DENSE 0x00000001 |
#define | NFL4_UFLG_COMMIT_THRU_MDS 0x00000002 |
#define | NFL4_UFLG_STRIPE_UNIT_SIZE_MASK 0xFFFFFFC0 |
#define | PNFS_DEVICEID_SIZE 16 |
Typedefs | |
typedef struct __pnfs_device | pnfs_device |
typedef struct __pnfs_stripe_indices | pnfs_stripe_indices |
typedef struct __pnfs_data_server | pnfs_data_server |
typedef struct __pnfs_data_server_list | pnfs_data_server_list |
typedef struct __pnfs_file_device | pnfs_file_device |
typedef struct __pnfs_layout_state | pnfs_layout_state |
typedef struct __pnfs_layout | pnfs_layout |
typedef struct __pnfs_file_layout_handles | pnfs_file_layout_handles |
typedef struct __pnfs_file_layout | pnfs_file_layout |
Enumerations | |
enum | pnfs_status { PNFS_SUCCESS = 0 , PNFS_PENDING , PNFS_READ_EOF , PNFSERR_NOT_SUPPORTED , PNFSERR_NOT_CONNECTED , PNFSERR_IO , PNFSERR_NO_DEVICE , PNFSERR_NO_LAYOUT , PNFSERR_INVALID_FH_LIST , PNFSERR_INVALID_DS_INDEX , PNFSERR_RESOURCES , PNFSERR_LAYOUT_RECALLED , PNFSERR_LAYOUT_CHANGED } |
enum | pnfs_layout_type { PNFS_LAYOUTTYPE_FILE = 1 , PNFS_LAYOUTTYPE_OBJECT = 2 , PNFS_LAYOUTTYPE_BLOCK = 3 } |
enum | pnfs_iomode { PNFS_IOMODE_READ = 0x1 , PNFS_IOMODE_RW = 0x2 , PNFS_IOMODE_ANY = PNFS_IOMODE_READ | PNFS_IOMODE_RW } |
enum | pnfs_layout_status { PNFS_LAYOUT_UNAVAILABLE = 0x10 , PNFS_LAYOUT_NOT_RW = 0x20 } |
enum | pnfs_device_status { PNFS_DEVICE_GRANTED = 0x1 , PNFS_DEVICE_REVOKED = 0x2 } |
enum | pnfs_return_type { PNFS_RETURN_FILE = 1 , PNFS_RETURN_FSID = 2 , PNFS_RETURN_ALL = 3 } |
typedef struct __pnfs_data_server pnfs_data_server |
typedef struct __pnfs_device pnfs_device |
typedef struct __pnfs_file_device pnfs_file_device |
typedef struct __pnfs_file_layout pnfs_file_layout |
typedef struct __pnfs_layout pnfs_layout |
Enumerator | |
---|---|
PNFS_DEVICE_GRANTED | |
PNFS_DEVICE_REVOKED |
Definition at line 93 of file pnfs.h.
Enumerator | |
---|---|
PNFS_IOMODE_READ | |
PNFS_IOMODE_RW | |
PNFS_IOMODE_ANY |
Enumerator | |
---|---|
PNFS_LAYOUT_UNAVAILABLE | |
PNFS_LAYOUT_NOT_RW |
Definition at line 86 of file pnfs.h.
Enumerator | |
---|---|
PNFS_LAYOUTTYPE_FILE | |
PNFS_LAYOUTTYPE_OBJECT | |
PNFS_LAYOUTTYPE_BLOCK |
Enumerator | |
---|---|
PNFS_RETURN_FILE | |
PNFS_RETURN_FSID | |
PNFS_RETURN_ALL |
Definition at line 358 of file pnfs.h.
Referenced by get_sparse_fh(), and thread_data_server().
__inline int is_dense | ( | IN const pnfs_file_layout * | layout | ) |
Definition at line 297 of file pnfs.h.
Referenced by dprint_layout(), stripe_next_unit(), and thread_init().
__inline uint32_t layout_unit_size | ( | IN const pnfs_file_layout * | layout | ) |
Definition at line 315 of file pnfs.h.
Referenced by dprint_layout(), layout_sanity_check(), and stripe_next_unit().
enum pnfs_status pnfs_data_server_client | ( | IN struct __nfs41_root * | root, |
IN pnfs_data_server * | server, | ||
IN uint32_t | default_lease, | ||
OUT struct __nfs41_client ** | client_out | ||
) |
Referenced by file_layout_read_thread(), and file_layout_write_thread().
enum pnfs_status pnfs_file_device_get | ( | IN struct __nfs41_session * | session, |
IN struct pnfs_file_device_list * | devices, | ||
IN unsigned char * | deviceid, | ||
OUT pnfs_file_device ** | device_out | ||
) |
Referenced by device_fetch().
enum pnfs_status pnfs_file_device_list_create | ( | OUT struct pnfs_file_device_list ** | devices_out | ) |
Definition at line 124 of file pnfs_device.c.
Referenced by pnfs_client_init().
void pnfs_file_device_list_free | ( | IN struct pnfs_file_device_list * | devices | ) |
Definition at line 144 of file pnfs_device.c.
Referenced by nfs41_client_free().
void pnfs_file_device_list_invalidate | ( | IN struct pnfs_file_device_list * | devices | ) |
Definition at line 159 of file pnfs_device.c.
Referenced by file_layout_recall_all(), and file_layout_recall_fsid().
enum pnfs_status pnfs_file_device_notify | ( | IN struct pnfs_file_device_list * | devices, |
IN const struct notify_deviceid4 * | change | ||
) |
Definition at line 328 of file pnfs_device.c.
Referenced by handle_cb_notify_deviceid().
void pnfs_file_device_put | ( | IN pnfs_file_device * | device | ) |
Definition at line 245 of file pnfs_device.c.
Referenced by file_layout_free().
enum pnfs_status pnfs_file_layout_recall | ( | IN struct __nfs41_client * | client, |
IN const struct cb_layoutrecall_args * | recall | ||
) |
Referenced by handle_cb_layoutrecall(), nfs41_client_state_revoked(), and nfs41_recover_client_state().
void pnfs_layout_io_finished | ( | IN pnfs_layout_state * | state | ) |
Definition at line 1267 of file pnfs_layout.c.
Referenced by pattern_free().
void pnfs_layout_io_start | ( | IN pnfs_layout_state * | state | ) |
Definition at line 1257 of file pnfs_layout.c.
Referenced by pattern_init().
enum pnfs_status pnfs_layout_list_create | ( | OUT struct pnfs_layout_list ** | layouts_out | ) |
Definition at line 121 of file pnfs_layout.c.
Referenced by pnfs_client_init().
void pnfs_layout_list_free | ( | IN struct pnfs_layout_list * | layouts | ) |
Definition at line 139 of file pnfs_layout.c.
Referenced by nfs41_client_free(), and pnfs_client_init().
void pnfs_layout_recall_fenced | ( | IN pnfs_layout_state * | state, |
IN const pnfs_layout * | layout | ||
) |
Definition at line 1233 of file pnfs_layout.c.
Referenced by map_ds_error().
enum pnfs_status pnfs_layout_recall_status | ( | IN const pnfs_layout_state * | state, |
IN const pnfs_layout * | layout | ||
) |
Definition at line 1211 of file pnfs_layout.c.
Referenced by thread_next_unit().
void pnfs_layout_state_close | ( | IN struct __nfs41_session * | session, |
IN struct __nfs41_open_state * | state, | ||
IN bool_t | remove | ||
) |
Referenced by handle_close().
enum pnfs_status pnfs_layout_state_open | ( | IN struct __nfs41_open_state * | state, |
OUT pnfs_layout_state ** | layout_out | ||
) |
Referenced by read_from_pnfs(), and write_to_pnfs().
enum pnfs_status pnfs_layout_state_prepare | ( | IN pnfs_layout_state * | state, |
IN struct __nfs41_session * | session, | ||
IN nfs41_path_fh * | meta_file, | ||
IN struct __stateid_arg * | stateid, | ||
IN enum pnfs_iomode | iomode, | ||
IN uint64_t | offset, | ||
IN uint64_t | length | ||
) |
Referenced by pnfs_read(), and pnfs_write().
enum pnfs_status pnfs_read | ( | IN struct __nfs41_root * | root, |
IN struct __nfs41_open_state * | state, | ||
IN struct __stateid_arg * | stateid, | ||
IN pnfs_layout_state * | layout, | ||
IN uint64_t | offset, | ||
IN uint64_t | length, | ||
OUT unsigned char * | buffer_out, | ||
OUT ULONG * | len_out | ||
) |
Referenced by read_from_pnfs().
enum pnfs_status pnfs_write | ( | IN struct __nfs41_root * | root, |
IN struct __nfs41_open_state * | state, | ||
IN struct __stateid_arg * | stateid, | ||
IN pnfs_layout_state * | layout, | ||
IN uint64_t | offset, | ||
IN uint64_t | length, | ||
IN unsigned char * | buffer, | ||
OUT ULONG * | len_out, | ||
OUT nfs41_file_info * | cinfo | ||
) |
Referenced by write_to_pnfs().
__inline int should_commit_to_mds | ( | IN const pnfs_file_layout * | layout | ) |
Definition at line 306 of file pnfs.h.
Referenced by dprint_layout(), file_layout_write_thread(), and mds_commit().
__inline uint32_t stripe_index | ( | IN const pnfs_file_layout * | layout, |
IN uint64_t | sui, | ||
IN uint32_t | stripe_count | ||
) |
Definition at line 347 of file pnfs.h.
Referenced by stripe_next_unit().
__inline uint64_t stripe_unit_number | ( | IN const pnfs_file_layout * | layout, |
IN uint64_t | offset, | ||
IN uint32_t | unit_size | ||
) |
Definition at line 324 of file pnfs.h.
Referenced by stripe_next_unit().