Home
last modified time | relevance | path

Searched refs:smb_request_t (Results 1 – 25 of 93) sorted by relevance

1234

/titanic_50/usr/src/uts/common/smbsrv/
H A Dsmb2_kproto.h35 int smb2sr_newrq(smb_request_t *);
36 int smb2sr_newrq_async(smb_request_t *);
37 int smb2sr_newrq_cancel(smb_request_t *);
38 void smb2sr_work(smb_request_t *);
40 int smb2_decode_header(smb_request_t *);
41 int smb2_encode_header(smb_request_t *, boolean_t);
42 void smb2_send_reply(smb_request_t *);
43 void smb2sr_put_error(smb_request_t *, uint32_t);
44 void smb2sr_put_error_data(smb_request_t *, uint32_t, mbuf_chain_t *);
46 uint32_t smb2sr_lookup_fid(smb_request_t *, smb2fid_t *);
[all …]
H A Dsmb_kproto.h168 smb_sdrc_t smb_pre_##NAME(smb_request_t *); \
169 smb_sdrc_t smb_com_##NAME(smb_request_t *); \
170 void smb_post_##NAME(smb_request_t *)
233 smb_sdrc_t smb_pre_##NAME(smb_request_t *, smb_xa_t *); \
234 smb_sdrc_t smb_##NAME(smb_request_t *, smb_xa_t *); \
235 void smb_post_##NAME(smb_request_t *, smb_xa_t *)
239 smb_sdrc_t smb_nt_transact_notify_change(smb_request_t *, smb_xa_t *);
240 smb_sdrc_t smb_nt_transact_query_security_info(smb_request_t *, smb_xa_t *);
241 smb_sdrc_t smb_nt_transact_set_security_info(smb_request_t *, smb_xa_t *);
242 smb_sdrc_t smb_nt_transact_ioctl(smb_request_t *, smb_xa_t *);
[all …]
H A Dsmb_fsops.h54 int smb_fsop_create(smb_request_t *, cred_t *, smb_node_t *,
57 int smb_fsop_mkdir(smb_request_t *, cred_t *, smb_node_t *,
60 int smb_fsop_remove(smb_request_t *sr, cred_t *cr, smb_node_t *,
63 int smb_fsop_rmdir(smb_request_t *, cred_t *, smb_node_t *, char *, uint32_t);
65 int smb_fsop_getattr(smb_request_t *, cred_t *, smb_node_t *, smb_attr_t *);
69 int smb_fsop_link(smb_request_t *, cred_t *, smb_node_t *, smb_node_t *,
72 int smb_fsop_rename(smb_request_t *, cred_t *,
75 int smb_fsop_setattr(smb_request_t *, cred_t *, smb_node_t *, smb_attr_t *);
76 int smb_fsop_set_data_length(smb_request_t *sr, cred_t *cr, smb_node_t *,
79 int smb_fsop_read(smb_request_t *, cred_t *, smb_node_t *, uio_t *);
[all …]
/titanic_50/usr/src/uts/common/fs/smbsrv/
H A Dsmb2_qinfo_file.c27 static uint32_t smb2_qif_all(smb_request_t *, smb_queryinfo_t *);
28 static uint32_t smb2_qif_basic(smb_request_t *, smb_queryinfo_t *);
29 static uint32_t smb2_qif_standard(smb_request_t *, smb_queryinfo_t *);
30 static uint32_t smb2_qif_internal(smb_request_t *, smb_queryinfo_t *);
31 static uint32_t smb2_qif_ea_size(smb_request_t *, smb_queryinfo_t *);
32 static uint32_t smb2_qif_access(smb_request_t *, smb_queryinfo_t *);
33 static uint32_t smb2_qif_name(smb_request_t *, smb_queryinfo_t *);
34 static uint32_t smb2_qif_position(smb_request_t *, smb_queryinfo_t *);
35 static uint32_t smb2_qif_full_ea(smb_request_t *, smb_queryinfo_t *);
36 static uint32_t smb2_qif_mode(smb_request_t *, smb_queryinfo_t *);
[all …]
H A Dsmb_tree_connect.c30 smb_tcon_puterror(smb_request_t *sr, uint32_t status) in smb_tcon_puterror()
89 smb_pre_tree_connect(smb_request_t *sr) in smb_pre_tree_connect()
103 DTRACE_SMB_2(op__TreeConnect__start, smb_request_t *, sr, in smb_pre_tree_connect()
110 smb_post_tree_connect(smb_request_t *sr) in smb_post_tree_connect()
112 DTRACE_SMB_1(op__TreeConnect__done, smb_request_t *, sr); in smb_post_tree_connect()
116 smb_com_tree_connect(smb_request_t *sr) in smb_com_tree_connect()
272 smb_pre_tree_connect_andx(smb_request_t *sr) in smb_pre_tree_connect_andx()
294 DTRACE_SMB_2(op__TreeConnectX__start, smb_request_t *, sr, in smb_pre_tree_connect_andx()
301 smb_post_tree_connect_andx(smb_request_t *sr) in smb_post_tree_connect_andx()
303 DTRACE_SMB_1(op__TreeConnectX__done, smb_request_t *, sr); in smb_post_tree_connect_andx()
[all …]
H A Dsmb_print.c56 smb_pre_open_print_file(smb_request_t *sr) in smb_pre_open_print_file()
81 DTRACE_SMB_2(op__OpenPrintFile__start, smb_request_t *, sr, in smb_pre_open_print_file()
88 smb_post_open_print_file(smb_request_t *sr) in smb_post_open_print_file()
90 DTRACE_SMB_1(op__OpenPrintFile__done, smb_request_t *, sr); in smb_post_open_print_file()
105 smb_com_open_print_file(smb_request_t *sr) in smb_com_open_print_file()
155 smb_pre_close_print_file(smb_request_t *sr) in smb_pre_close_print_file()
161 DTRACE_SMB_1(op__ClosePrintFile__start, smb_request_t *, sr); in smb_pre_close_print_file()
166 smb_post_close_print_file(smb_request_t *sr) in smb_post_close_print_file()
168 DTRACE_SMB_1(op__ClosePrintFile__done, smb_request_t *, sr); in smb_post_close_print_file()
183 smb_com_close_print_file(smb_request_t *sr) in smb_com_close_print_file()
[all …]
H A Dsmb2_setinfo_file.c27 static uint32_t smb2_setf_rename(smb_request_t *, smb_setinfo_t *);
28 static uint32_t smb2_setf_link(smb_request_t *, smb_setinfo_t *);
30 static uint32_t smb2_setf_seek(smb_request_t *, smb_setinfo_t *);
31 static uint32_t smb2_setf_full_ea(smb_request_t *, smb_setinfo_t *);
32 static uint32_t smb2_setf_mode(smb_request_t *, smb_setinfo_t *);
34 static uint32_t smb2_setf_pipe(smb_request_t *, smb_setinfo_t *);
35 static uint32_t smb2_setf_valid_len(smb_request_t *, smb_setinfo_t *);
36 static uint32_t smb2_setf_shortname(smb_request_t *, smb_setinfo_t *);
40 smb2_setinfo_file(smb_request_t *sr, smb_setinfo_t *si, int InfoClass) in smb2_setinfo_file()
98 smb2_setf_rename(smb_request_t *sr, smb_setinfo_t *si) in smb2_setf_rename()
[all …]
H A Dsmb_create.c36 smb_pre_create(smb_request_t *sr) in smb_pre_create()
50 DTRACE_SMB_2(op__Create__start, smb_request_t *, sr, in smb_pre_create()
57 smb_post_create(smb_request_t *sr) in smb_post_create()
59 DTRACE_SMB_1(op__Create__done, smb_request_t *, sr); in smb_post_create()
63 smb_com_create(smb_request_t *sr) in smb_com_create()
79 smb_pre_create_new(smb_request_t *sr) in smb_pre_create_new()
92 DTRACE_SMB_2(op__CreateNew__start, smb_request_t *, sr, in smb_pre_create_new()
99 smb_post_create_new(smb_request_t *sr) in smb_post_create_new()
101 DTRACE_SMB_1(op__CreateNew__done, smb_request_t *, sr); in smb_post_create_new()
105 smb_com_create_new(smb_request_t *sr) in smb_com_create_new()
[all …]
H A Dsmb2_qinfo_fs.c37 uint32_t smb2_qfs_volume(smb_request_t *);
38 uint32_t smb2_qfs_size(smb_request_t *);
39 uint32_t smb2_qfs_device(smb_request_t *);
40 uint32_t smb2_qfs_attr(smb_request_t *);
41 uint32_t smb2_qfs_control(smb_request_t *);
42 uint32_t smb2_qfs_fullsize(smb_request_t *);
43 uint32_t smb2_qfs_obj_id(smb_request_t *);
46 smb2_qinfo_fs(smb_request_t *sr, smb_queryinfo_t *qi) in smb2_qinfo_fs()
87 smb2_qfs_volume(smb_request_t *sr) in smb2_qfs_volume()
121 smb2_qfs_size(smb_request_t *sr) in smb2_qfs_size()
[all …]
H A Dsmb_close.c42 smb_pre_close(smb_request_t *sr) in smb_pre_close()
48 DTRACE_SMB_1(op__Close__start, smb_request_t *, sr); in smb_pre_close()
53 smb_post_close(smb_request_t *sr) in smb_post_close()
55 DTRACE_SMB_1(op__Close__done, smb_request_t *, sr); in smb_post_close()
59 smb_com_close(smb_request_t *sr) in smb_com_close()
83 smb_pre_close_and_tree_disconnect(smb_request_t *sr) in smb_pre_close_and_tree_disconnect()
89 DTRACE_SMB_1(op__CloseAndTreeDisconnect__start, smb_request_t *, sr); in smb_pre_close_and_tree_disconnect()
94 smb_post_close_and_tree_disconnect(smb_request_t *sr) in smb_post_close_and_tree_disconnect()
96 DTRACE_SMB_1(op__CloseAndTreeDisconnect__done, smb_request_t *, sr); in smb_post_close_and_tree_disconnect()
100 smb_com_close_and_tree_disconnect(smb_request_t *sr) in smb_com_close_and_tree_disconnect()
H A Dsmb_set_fileinfo.c69 static int smb_set_by_fid(smb_request_t *, smb_xa_t *, uint16_t);
70 static int smb_set_by_path(smb_request_t *, smb_xa_t *, uint16_t);
75 static uint32_t smb_set_fileinfo(smb_request_t *, smb_setinfo_t *, int);
76 static uint32_t smb_set_information(smb_request_t *, smb_setinfo_t *);
77 static uint32_t smb_set_information2(smb_request_t *, smb_setinfo_t *);
78 static uint32_t smb_set_standard_info(smb_request_t *, smb_setinfo_t *);
79 static uint32_t smb_set_rename_info(smb_request_t *sr, smb_setinfo_t *);
85 smb_com_trans2_set_file_information(smb_request_t *sr, smb_xa_t *xa) in smb_com_trans2_set_file_information()
103 smb_com_trans2_set_path_information(smb_request_t *sr, smb_xa_t *xa) in smb_com_trans2_set_path_information()
128 smb_pre_set_information(smb_request_t *sr) in smb_pre_set_information()
[all …]
H A Dsmb_alloc.c39 smb_request_t *smh_sr;
43 static void *smb_alloc(smb_request_t *, size_t, boolean_t);
44 static void smb_free(smb_request_t *, void *, boolean_t);
45 static void *smb_realloc(smb_request_t *, void *, size_t, boolean_t);
129 smb_srm_init(smb_request_t *sr) in smb_srm_init()
140 smb_srm_fini(smb_request_t *sr) in smb_srm_fini()
155 smb_srm_alloc(smb_request_t *sr, size_t size) in smb_srm_alloc()
166 smb_srm_zalloc(smb_request_t *sr, size_t size) in smb_srm_zalloc()
177 smb_srm_realloc(smb_request_t *sr, void *p, size_t size) in smb_srm_realloc()
191 smb_srm_rezalloc(smb_request_t *sr, void *p, size_t size) in smb_srm_rezalloc()
[all …]
H A Dsmb_nt_transact_ioctl.c30 static uint32_t smb_nt_trans_ioctl_noop(smb_request_t *, smb_xa_t *);
31 static uint32_t smb_nt_trans_ioctl_invalid_parm(smb_request_t *, smb_xa_t *);
32 static uint32_t smb_nt_trans_ioctl_set_sparse(smb_request_t *, smb_xa_t *);
33 static uint32_t smb_nt_trans_ioctl_query_alloc_ranges(smb_request_t *,
35 static uint32_t smb_nt_trans_ioctl_set_zero_data(smb_request_t *, smb_xa_t *);
36 static uint32_t smb_nt_trans_ioctl_enum_snaps(smb_request_t *, smb_xa_t *);
48 uint32_t (*ioctl_func)(smb_request_t *sr, smb_xa_t *xa);
89 smb_nt_transact_ioctl(smb_request_t *sr, smb_xa_t *xa) in smb_nt_transact_ioctl()
126 smb_nt_trans_ioctl_noop(smb_request_t *sr, smb_xa_t *xa) in smb_nt_trans_ioctl_noop()
133 smb_nt_trans_ioctl_invalid_parm(smb_request_t *sr, smb_xa_t *xa) in smb_nt_trans_ioctl_invalid_parm()
[all …]
H A Dsmb_rename.c62 smb_pre_rename(smb_request_t *sr) in smb_pre_rename()
75 DTRACE_SMB_2(op__Rename__start, smb_request_t *, sr, in smb_pre_rename()
82 smb_post_rename(smb_request_t *sr) in smb_post_rename()
84 DTRACE_SMB_1(op__Rename__done, smb_request_t *, sr); in smb_post_rename()
88 smb_com_rename(smb_request_t *sr) in smb_com_rename()
133 smb_pre_nt_rename(smb_request_t *sr) in smb_pre_nt_rename()
149 DTRACE_SMB_2(op__NtRename__start, smb_request_t *, sr, in smb_pre_nt_rename()
156 smb_post_nt_rename(smb_request_t *sr) in smb_post_nt_rename()
158 DTRACE_SMB_1(op__NtRename__done, smb_request_t *, sr); in smb_post_nt_rename()
162 smb_com_nt_rename(smb_request_t *sr) in smb_com_nt_rename()
[all …]
H A Dsmb_write.c33 static int smb_write_truncate(smb_request_t *, smb_rw_param_t *);
47 smb_pre_write(smb_request_t *sr) in smb_pre_write()
64 DTRACE_SMB_2(op__Write__start, smb_request_t *, sr, in smb_pre_write()
71 smb_post_write(smb_request_t *sr) in smb_post_write()
73 DTRACE_SMB_2(op__Write__done, smb_request_t *, sr, in smb_post_write()
80 smb_com_write(smb_request_t *sr) in smb_com_write()
132 smb_pre_write_and_close(smb_request_t *sr) in smb_pre_write_and_close()
154 DTRACE_SMB_2(op__WriteAndClose__start, smb_request_t *, sr, in smb_pre_write_and_close()
161 smb_post_write_and_close(smb_request_t *sr) in smb_post_write_and_close()
163 DTRACE_SMB_2(op__WriteAndClose__done, smb_request_t *, sr, in smb_post_write_and_close()
[all …]
H A Dsmb_delete.c34 static int smb_delete_check_path(smb_request_t *);
35 static int smb_delete_single_file(smb_request_t *, smb_error_t *);
36 static int smb_delete_multiple_files(smb_request_t *, smb_error_t *);
37 static int smb_delete_find_fname(smb_request_t *, smb_odir_t *, char *, int);
38 static int smb_delete_check_dosattr(smb_request_t *, smb_error_t *);
39 static int smb_delete_remove_file(smb_request_t *, smb_error_t *);
97 smb_pre_delete(smb_request_t *sr) in smb_pre_delete()
107 DTRACE_SMB_2(op__Delete__start, smb_request_t *, sr, smb_fqi_t *, fqi); in smb_pre_delete()
113 smb_post_delete(smb_request_t *sr) in smb_post_delete()
115 DTRACE_SMB_1(op__Delete__done, smb_request_t *, sr); in smb_post_delete()
[all …]
H A Dsmb_read.c40 int smb_common_read(smb_request_t *, smb_rw_param_t *);
58 smb_pre_read(smb_request_t *sr) in smb_pre_read()
76 DTRACE_SMB_2(op__Read__start, smb_request_t *, sr, in smb_pre_read()
83 smb_post_read(smb_request_t *sr) in smb_post_read()
85 DTRACE_SMB_2(op__Read__done, smb_request_t *, sr, in smb_post_read()
92 smb_com_read(smb_request_t *sr) in smb_com_read()
144 smb_pre_lock_and_read(smb_request_t *sr) in smb_pre_lock_and_read()
162 DTRACE_SMB_2(op__LockAndRead__start, smb_request_t *, sr, in smb_pre_lock_and_read()
169 smb_post_lock_and_read(smb_request_t *sr) in smb_post_lock_and_read()
171 DTRACE_SMB_2(op__LockAndRead__done, smb_request_t *, sr, in smb_post_lock_and_read()
[all …]
H A Dsmb_query_fileinfo.c80 static int smb_query_by_fid(smb_request_t *, smb_xa_t *, uint16_t);
81 static int smb_query_by_path(smb_request_t *, smb_xa_t *, uint16_t);
83 static int smb_query_fileinfo(smb_request_t *, smb_node_t *,
85 static int smb_query_pipeinfo(smb_request_t *, smb_opipe_t *,
87 static boolean_t smb_query_pipe_valid_infolev(smb_request_t *, uint16_t);
89 static int smb_query_encode_response(smb_request_t *, smb_xa_t *,
91 static boolean_t smb_stream_fits(smb_request_t *, mbuf_chain_t *,
93 static int smb_query_pathname(smb_request_t *, smb_node_t *, boolean_t,
120 smb_com_trans2_query_path_information(smb_request_t *sr, smb_xa_t *xa) in smb_com_trans2_query_path_information()
145 smb_pre_query_information(smb_request_t *sr) in smb_pre_query_information()
[all …]
H A Dsmb_logoff_andx.c64 smb_pre_logoff_andx(smb_request_t *sr) in smb_pre_logoff_andx()
66 DTRACE_SMB_1(op__LogoffX__start, smb_request_t *, sr); in smb_pre_logoff_andx()
71 smb_post_logoff_andx(smb_request_t *sr) in smb_post_logoff_andx()
73 DTRACE_SMB_1(op__LogoffX__done, smb_request_t *, sr); in smb_post_logoff_andx()
77 smb_com_logoff_andx(smb_request_t *sr) in smb_com_logoff_andx()
H A Dsmb_directory.c55 smb_pre_create_directory(smb_request_t *sr) in smb_pre_create_directory()
62 DTRACE_SMB_2(op__CreateDirectory__start, smb_request_t *, sr, in smb_pre_create_directory()
69 smb_post_create_directory(smb_request_t *sr) in smb_post_create_directory()
71 DTRACE_SMB_1(op__CreateDirectory__done, smb_request_t *, sr); in smb_post_create_directory()
75 smb_com_create_directory(smb_request_t *sr) in smb_com_create_directory()
111 smb_common_create_directory(smb_request_t *sr) in smb_common_create_directory()
202 smb_pre_delete_directory(smb_request_t *sr) in smb_pre_delete_directory()
209 DTRACE_SMB_2(op__DeleteDirectory__start, smb_request_t *, sr, in smb_pre_delete_directory()
216 smb_post_delete_directory(smb_request_t *sr) in smb_post_delete_directory()
218 DTRACE_SMB_1(op__DeleteDirectory__done, smb_request_t *, sr); in smb_post_delete_directory()
[all …]
H A Dsmb2_setinfo_fs.c37 uint32_t smb2_setfs_control(smb_request_t *, smb_setinfo_t *);
38 uint32_t smb2_setfs_obj_id(smb_request_t *, smb_setinfo_t *);
41 smb2_setinfo_fs(smb_request_t *sr, smb_setinfo_t *si, int InfoClass) in smb2_setinfo_fs()
68 smb2_setfs_control(smb_request_t *sr, smb_setinfo_t *si) in smb2_setfs_control()
84 smb2_setfs_obj_id(smb_request_t *sr, smb_setinfo_t *si) in smb2_setfs_obj_id()
H A Dsmb_unlock_byte_range.c57 smb_pre_unlock_byte_range(smb_request_t *sr) in smb_pre_unlock_byte_range()
59 DTRACE_SMB_1(op__UnlockByteRange__start, smb_request_t *, sr); in smb_pre_unlock_byte_range()
64 smb_post_unlock_byte_range(smb_request_t *sr) in smb_post_unlock_byte_range()
66 DTRACE_SMB_1(op__UnlockByteRange__done, smb_request_t *, sr); in smb_post_unlock_byte_range()
70 smb_com_unlock_byte_range(smb_request_t *sr) in smb_com_unlock_byte_range()
H A Dsmb_nt_cancel.c48 smb_pre_nt_cancel(smb_request_t *sr) in smb_pre_nt_cancel()
50 DTRACE_SMB_1(op__NtCancel__start, smb_request_t *, sr); in smb_pre_nt_cancel()
55 smb_post_nt_cancel(smb_request_t *sr) in smb_post_nt_cancel()
57 DTRACE_SMB_1(op__NtCancel__done, smb_request_t *, sr); in smb_post_nt_cancel()
61 smb_com_nt_cancel(smb_request_t *sr) in smb_com_nt_cancel()
H A Dsmb_process_exit.c57 smb_pre_process_exit(smb_request_t *sr) in smb_pre_process_exit()
59 DTRACE_SMB_1(op__ProcessExit__start, smb_request_t *, sr); in smb_pre_process_exit()
64 smb_post_process_exit(smb_request_t *sr) in smb_post_process_exit()
66 DTRACE_SMB_1(op__ProcessExit__done, smb_request_t *, sr); in smb_post_process_exit()
70 smb_com_process_exit(smb_request_t *sr) in smb_com_process_exit()
H A Dsmb_seek.c81 smb_pre_seek(smb_request_t *sr) in smb_pre_seek()
83 DTRACE_SMB_1(op__Seek__start, smb_request_t *, sr); in smb_pre_seek()
88 smb_post_seek(smb_request_t *sr) in smb_post_seek()
90 DTRACE_SMB_1(op__Seek__done, smb_request_t *, sr); in smb_post_seek()
94 smb_com_seek(smb_request_t *sr) in smb_com_seek()

1234