ReactOS 0.4.16-dev-334-g4d9f67c
|
#include <windows.h>
#include <strsafe.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "nfs41_ops.h"
#include "nfs41_compound.h"
#include "nfs41_xdr.h"
#include "name_cache.h"
#include "delegation.h"
#include "daemon_debug.h"
#include "util.h"
Go to the source code of this file.
int nfs41_access | ( | IN nfs41_session * | session, |
IN nfs41_path_fh * | file, | ||
IN uint32_t | requested, | ||
OUT uint32_t *supported | OPTIONAL, | ||
OUT uint32_t *access | OPTIONAL | ||
) |
Definition at line 1554 of file nfs41_ops.c.
Referenced by check_execute_access().
enum nfsstat4 nfs41_bind_conn_to_session | ( | IN nfs41_rpc_clnt * | rpc, |
IN const unsigned char * | sessionid, | ||
IN enum channel_dir_from_client4 | dir | ||
) |
Definition at line 185 of file nfs41_ops.c.
Referenced by compound_encode_send_decode(), and rpc_reconnect().
int nfs41_close | ( | IN nfs41_session * | session, |
IN nfs41_path_fh * | file, | ||
IN stateid_arg * | stateid | ||
) |
Definition at line 627 of file nfs41_ops.c.
Referenced by cancel_open(), do_nfs41_close(), get_ea_value(), recover_delegation_open(), and set_ea_value().
int nfs41_commit | ( | IN nfs41_session * | session, |
IN nfs41_path_fh * | file, | ||
IN uint64_t | offset, | ||
IN uint32_t | count, | ||
IN bool_t | do_getattr, | ||
OUT nfs41_write_verf * | verf, | ||
OUT nfs41_file_info * | cinfo | ||
) |
Definition at line 833 of file nfs41_ops.c.
Referenced by file_layout_write_thread(), mds_commit(), and write_to_mds().
int nfs41_create | ( | IN nfs41_session * | session, |
IN uint32_t | type, | ||
IN nfs41_file_info * | createattrs, | ||
IN OPTIONAL const char * | symlink, | ||
IN nfs41_path_fh * | parent, | ||
OUT nfs41_path_fh * | file, | ||
OUT nfs41_file_info * | info | ||
) |
Definition at line 530 of file nfs41_ops.c.
Referenced by handle_open(), and handle_symlink().
int nfs41_create_session | ( | nfs41_client * | clnt, |
nfs41_session * | session, | ||
bool_t | try_recovery | ||
) |
Definition at line 101 of file nfs41_ops.c.
Referenced by nfs41_session_create(), and nfs41_session_renew().
int nfs41_delegpurge | ( | IN nfs41_session * | session | ) |
Definition at line 1666 of file nfs41_ops.c.
Referenced by nfs41_client_delegation_recovery().
int nfs41_delegreturn | ( | IN nfs41_session * | session, |
IN nfs41_path_fh * | file, | ||
IN stateid_arg * | stateid, | ||
IN bool_t | try_recovery | ||
) |
Definition at line 1693 of file nfs41_ops.c.
Referenced by delegation_return(), nfs41_delegation_granted(), and open_delegation_return().
int nfs41_destroy_clientid | ( | IN nfs41_rpc_clnt * | rpc, |
IN uint64_t | clientid | ||
) |
Definition at line 242 of file nfs41_ops.c.
Referenced by nfs41_client_free().
int nfs41_destroy_session | ( | IN nfs41_session * | session | ) |
Definition at line 214 of file nfs41_ops.c.
Referenced by nfs41_session_free().
int nfs41_exchange_id | ( | IN nfs41_rpc_clnt * | rpc, |
IN client_owner4 * | owner, | ||
IN uint32_t | flags_in, | ||
OUT nfs41_exchange_id_res * | res_out | ||
) |
Definition at line 36 of file nfs41_ops.c.
Referenced by nfs41_client_renew(), and nfs41_root_mount_addrs().
Definition at line 1870 of file nfs41_ops.c.
Referenced by nfs41_client_state_revoked().
enum nfsstat4 nfs41_fs_locations | ( | IN nfs41_session * | session, |
IN nfs41_path_fh * | parent, | ||
IN const nfs41_component * | name, | ||
OUT fs_locations4 * | locations | ||
) |
Definition at line 1737 of file nfs41_ops.c.
Referenced by referral_resolve().
int nfs41_getattr | ( | IN nfs41_session * | session, |
IN OPTIONAL nfs41_path_fh * | file, | ||
IN bitmap4 * | attr_request, | ||
OUT nfs41_file_info * | info | ||
) |
Definition at line 1063 of file nfs41_ops.c.
Referenced by get_volume_size_info(), handle_getacl(), nfs41_cached_getattr(), pnfs_write(), session_get_lease(), and write_to_mds().
int nfs41_link | ( | IN nfs41_session * | session, |
IN nfs41_path_fh * | src, | ||
IN nfs41_path_fh * | dst_dir, | ||
IN const nfs41_component * | target, | ||
OUT nfs41_file_info * | cinfo | ||
) |
Definition at line 1407 of file nfs41_ops.c.
int nfs41_lock | ( | IN nfs41_session * | session, |
IN nfs41_path_fh * | file, | ||
IN state_owner4 * | owner, | ||
IN uint32_t | type, | ||
IN uint64_t | offset, | ||
IN uint64_t | length, | ||
IN bool_t | reclaim, | ||
IN bool_t | try_recovery, | ||
IN OUT stateid_arg * | stateid | ||
) |
Definition at line 904 of file nfs41_ops.c.
Referenced by delegation_flush_locks(), handle_lock(), and recover_locks().
int nfs41_open | ( | IN nfs41_session * | session, |
IN nfs41_path_fh * | parent, | ||
IN nfs41_path_fh * | file, | ||
IN state_owner4 * | owner, | ||
IN open_claim4 * | claim, | ||
IN uint32_t | allow, | ||
IN uint32_t | deny, | ||
IN uint32_t | create, | ||
IN uint32_t | how_mode, | ||
IN OPTIONAL nfs41_file_info * | createattrs, | ||
IN bool_t | try_recovery, | ||
OUT stateid4 * | stateid, | ||
OUT open_delegation4 * | delegation, | ||
OUT OPTIONAL nfs41_file_info * | info | ||
) |
Definition at line 366 of file nfs41_ops.c.
Referenced by do_open(), get_ea_value(), nfs41_delegation_to_open(), recover_open_grace(), recover_open_no_grace(), and set_ea_value().
int nfs41_read | ( | IN nfs41_session * | session, |
IN nfs41_path_fh * | file, | ||
IN stateid_arg * | stateid, | ||
IN uint64_t | offset, | ||
IN uint32_t | count, | ||
OUT unsigned char * | data_out, | ||
OUT uint32_t * | data_len_out, | ||
OUT bool_t * | eof_out | ||
) |
Definition at line 774 of file nfs41_ops.c.
Referenced by file_layout_read_thread(), get_ea_value(), and read_from_mds().
int nfs41_readdir | ( | IN nfs41_session * | session, |
IN nfs41_path_fh * | file, | ||
IN bitmap4 * | attr_request, | ||
IN nfs41_readdir_cookie * | cookie, | ||
OUT unsigned char * | entries, | ||
IN OUT uint32_t * | entries_len, | ||
OUT bool_t * | eof_out | ||
) |
Definition at line 1010 of file nfs41_ops.c.
Referenced by handle_readdir(), and read_entire_dir().
int nfs41_readlink | ( | IN nfs41_session * | session, |
IN nfs41_path_fh * | file, | ||
IN uint32_t | max_len, | ||
OUT char * | link_out, | ||
OUT uint32_t * | len_out | ||
) |
Definition at line 1511 of file nfs41_ops.c.
Referenced by handle_symlink(), and nfs41_symlink_target().
enum nfsstat4 nfs41_reclaim_complete | ( | IN nfs41_session * | session | ) |
Definition at line 268 of file nfs41_ops.c.
Referenced by nfs41_recover_client_state(), nfs41_recover_sequence_flags(), recover_delegation_open(), recover_delegation_want(), recover_locks(), recover_open(), and root_client_create().
int nfs41_remove | ( | IN nfs41_session * | session, |
IN nfs41_path_fh * | parent, | ||
IN const nfs41_component * | target, | ||
IN uint64_t | fileid | ||
) |
Definition at line 1180 of file nfs41_ops.c.
Referenced by cancel_open(), handle_close(), handle_nfs41_remove(), handle_open(), handle_symlink(), and set_ea_value().
int nfs41_rename | ( | IN nfs41_session * | session, |
IN nfs41_path_fh * | src_dir, | ||
IN const nfs41_component * | src_name, | ||
IN nfs41_path_fh * | dst_dir, | ||
IN const nfs41_component * | dst_name | ||
) |
Definition at line 1247 of file nfs41_ops.c.
enum nfsstat4 nfs41_rpc_openattr | ( | IN nfs41_session * | session, |
IN nfs41_path_fh * | file, | ||
IN bool_t | createdir, | ||
OUT nfs41_fh * | fh_out | ||
) |
Definition at line 2145 of file nfs41_ops.c.
Referenced by nfs41_ea_set().
int nfs41_secinfo | ( | IN nfs41_session * | session, |
IN nfs41_path_fh * | file, | ||
IN const nfs41_component * | name, | ||
OUT nfs41_secinfo_info * | secinfo | ||
) |
Definition at line 1785 of file nfs41_ops.c.
Referenced by compound_encode_send_decode().
int nfs41_secinfo_noname | ( | IN nfs41_session * | session, |
IN nfs41_path_fh * | file, | ||
OUT nfs41_secinfo_info * | secinfo | ||
) |
Definition at line 1828 of file nfs41_ops.c.
Referenced by compound_encode_send_decode().
int nfs41_send_sequence | ( | IN nfs41_session * | session | ) |
Definition at line 1599 of file nfs41_ops.c.
Referenced by renew_session().
int nfs41_setattr | ( | IN nfs41_session * | session, |
IN nfs41_path_fh * | file, | ||
IN stateid_arg * | stateid, | ||
IN nfs41_file_info * | info | ||
) |
Definition at line 1351 of file nfs41_ops.c.
Referenced by delegation_truncate(), handle_nfs41_set_size(), handle_setacl(), and handle_setexattr().
int nfs41_superblock_getattr | ( | IN nfs41_session * | session, |
IN nfs41_path_fh * | file, | ||
IN bitmap4 * | attr_request, | ||
OUT nfs41_file_info * | info, | ||
OUT bool_t * | supports_named_attrs | ||
) |
Definition at line 1116 of file nfs41_ops.c.
Referenced by get_superblock_attrs().
enum nfsstat4 nfs41_test_stateid | ( | IN nfs41_session * | session, |
IN stateid_arg * | stateid_array, | ||
IN uint32_t | count, | ||
OUT uint32_t * | status_array | ||
) |
Definition at line 1900 of file nfs41_ops.c.
Referenced by nfs41_client_state_revoked().
int nfs41_unlock | ( | IN nfs41_session * | session, |
IN nfs41_path_fh * | file, | ||
IN uint64_t | offset, | ||
IN uint64_t | length, | ||
IN OUT stateid_arg * | stateid | ||
) |
Definition at line 966 of file nfs41_ops.c.
Referenced by cancel_lock(), and handle_unlock().
enum nfsstat4 nfs41_want_delegation | ( | IN nfs41_session * | session, |
IN nfs41_path_fh * | file, | ||
IN deleg_claim4 * | claim, | ||
IN uint32_t | want, | ||
IN bool_t | try_recovery, | ||
OUT open_delegation4 * | delegation | ||
) |
Definition at line 1624 of file nfs41_ops.c.
Referenced by recover_delegation_want().
int nfs41_write | ( | IN nfs41_session * | session, |
IN nfs41_path_fh * | file, | ||
IN stateid_arg * | stateid, | ||
IN unsigned char * | data, | ||
IN uint32_t | data_len, | ||
IN uint64_t | offset, | ||
IN enum stable_how4 | stable, | ||
OUT uint32_t * | bytes_written, | ||
OUT nfs41_write_verf * | verf, | ||
OUT nfs41_file_info * | cinfo | ||
) |
Definition at line 685 of file nfs41_ops.c.
Referenced by file_layout_write_thread(), set_ea_value(), and write_to_mds().
|
static |
Definition at line 296 of file nfs41_ops.c.
Referenced by open_update_cache().
|
static |
Definition at line 321 of file nfs41_ops.c.
Referenced by nfs41_open().
enum nfsstat4 pnfs_rpc_getdeviceinfo | ( | IN nfs41_session * | session, |
IN unsigned char * | deviceid, | ||
OUT pnfs_file_device * | device | ||
) |
Definition at line 2109 of file nfs41_ops.c.
Referenced by pnfs_file_device_get().
enum nfsstat4 pnfs_rpc_layoutcommit | ( | IN nfs41_session * | session, |
IN nfs41_path_fh * | file, | ||
IN stateid4 * | stateid, | ||
IN uint64_t | offset, | ||
IN uint64_t | length, | ||
IN OPTIONAL uint64_t * | new_last_offset, | ||
IN OPTIONAL nfstime4 * | new_time_modify, | ||
OUT nfs41_file_info * | info | ||
) |
Definition at line 1999 of file nfs41_ops.c.
Referenced by layout_commit().
enum nfsstat4 pnfs_rpc_layoutget | ( | IN nfs41_session * | session, |
IN nfs41_path_fh * | file, | ||
IN stateid_arg * | stateid, | ||
IN enum pnfs_iomode | iomode, | ||
IN uint64_t | offset, | ||
IN uint64_t | minlength, | ||
IN uint64_t | length, | ||
OUT pnfs_layoutget_res_ok * | layoutget_res_ok | ||
) |
Definition at line 1935 of file nfs41_ops.c.
Referenced by file_layout_fetch().
enum nfsstat4 pnfs_rpc_layoutreturn | ( | IN nfs41_session * | session, |
IN nfs41_path_fh * | file, | ||
IN enum pnfs_layout_type | type, | ||
IN enum pnfs_iomode | iomode, | ||
IN uint64_t | offset, | ||
IN uint64_t | length, | ||
IN stateid4 * | stateid, | ||
OUT pnfs_layoutreturn_res * | layoutreturn_res | ||
) |
Definition at line 2062 of file nfs41_ops.c.
Referenced by file_layout_return().
|
static |
Definition at line 86 of file nfs41_ops.c.
Referenced by nfs41_create_session().
|
static |
Definition at line 70 of file nfs41_ops.c.
Referenced by nfs41_create_session().