Home
last modified time | relevance | path

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

123

/titanic_44/usr/src/uts/common/smbsrv/
H A Dsmb_kproto.h147 smb_sdrc_t smb_pre_##NAME(smb_request_t *); \
148 smb_sdrc_t smb_com_##NAME(smb_request_t *); \
149 void smb_post_##NAME(smb_request_t *)
212 smb_sdrc_t smb_pre_##NAME(smb_request_t *, smb_xa_t *); \
213 smb_sdrc_t smb_##NAME(smb_request_t *, smb_xa_t *); \
214 void smb_post_##NAME(smb_request_t *, smb_xa_t *)
218 smb_sdrc_t smb_nt_transact_notify_change(smb_request_t *, smb_xa_t *);
219 smb_sdrc_t smb_nt_transact_query_security_info(smb_request_t *, smb_xa_t *);
220 smb_sdrc_t smb_nt_transact_set_security_info(smb_request_t *, smb_xa_t *);
221 smb_sdrc_t smb_nt_transact_ioctl(smb_request_t *, smb_xa_t *);
[all …]
H A Dsmb_fsops.h52 int smb_fsop_create(smb_request_t *, cred_t *, smb_node_t *,
55 int smb_fsop_mkdir(smb_request_t *, cred_t *, smb_node_t *,
58 int smb_fsop_remove(smb_request_t *sr, cred_t *cr, smb_node_t *,
61 int smb_fsop_rmdir(smb_request_t *, cred_t *, smb_node_t *, char *, uint32_t);
63 int smb_fsop_getattr(smb_request_t *, cred_t *, smb_node_t *, smb_attr_t *);
67 int smb_fsop_link(smb_request_t *, cred_t *, smb_node_t *, smb_node_t *,
70 int smb_fsop_rename(smb_request_t *, cred_t *,
74 int smb_fsop_setattr(smb_request_t *, cred_t *, smb_node_t *, smb_attr_t *);
76 int smb_fsop_read(smb_request_t *, cred_t *, smb_node_t *, uio_t *);
78 int smb_fsop_write(smb_request_t *, cred_t *, smb_node_t *, uio_t *,
[all …]
/titanic_44/usr/src/uts/common/fs/smbsrv/
H A Dsmb_tree_connect.c62 smb_pre_tree_connect(smb_request_t *sr) in smb_pre_tree_connect()
76 DTRACE_SMB_2(op__TreeConnect__start, smb_request_t *, sr, in smb_pre_tree_connect()
83 smb_post_tree_connect(smb_request_t *sr) in smb_post_tree_connect()
85 DTRACE_SMB_1(op__TreeConnect__done, smb_request_t *, sr); in smb_post_tree_connect()
89 smb_com_tree_connect(smb_request_t *sr) in smb_com_tree_connect()
245 smb_pre_tree_connect_andx(smb_request_t *sr) in smb_pre_tree_connect_andx()
267 DTRACE_SMB_2(op__TreeConnectX__start, smb_request_t *, sr, in smb_pre_tree_connect_andx()
274 smb_post_tree_connect_andx(smb_request_t *sr) in smb_post_tree_connect_andx()
276 DTRACE_SMB_1(op__TreeConnectX__done, smb_request_t *, sr); in smb_post_tree_connect_andx()
280 smb_com_tree_connect_andx(smb_request_t *sr) in smb_com_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 Dsmb_create.c35 smb_pre_create(smb_request_t *sr) in smb_pre_create()
49 DTRACE_SMB_2(op__Create__start, smb_request_t *, sr, in smb_pre_create()
56 smb_post_create(smb_request_t *sr) in smb_post_create()
58 DTRACE_SMB_1(op__Create__done, smb_request_t *, sr); in smb_post_create()
62 smb_com_create(smb_request_t *sr) in smb_com_create()
78 smb_pre_create_new(smb_request_t *sr) in smb_pre_create_new()
91 DTRACE_SMB_2(op__CreateNew__start, smb_request_t *, sr, in smb_pre_create_new()
98 smb_post_create_new(smb_request_t *sr) in smb_post_create_new()
100 DTRACE_SMB_1(op__CreateNew__done, smb_request_t *, sr); in smb_post_create_new()
104 smb_com_create_new(smb_request_t *sr) in smb_com_create_new()
[all …]
H A Dsmb_set_fileinfo.c79 static int smb_set_by_fid(smb_request_t *, smb_xa_t *, uint16_t);
80 static int smb_set_by_path(smb_request_t *, smb_xa_t *, uint16_t);
81 static int smb_set_fileinfo(smb_request_t *, smb_setinfo_t *);
82 static int smb_set_information(smb_request_t *, smb_setinfo_t *);
83 static int smb_set_information2(smb_request_t *, smb_setinfo_t *);
84 static int smb_set_standard_info(smb_request_t *, smb_setinfo_t *);
85 static int smb_set_basic_info(smb_request_t *, smb_setinfo_t *);
86 static int smb_set_disposition_info(smb_request_t *, smb_setinfo_t *);
87 static int smb_set_eof_info(smb_request_t *sr, smb_setinfo_t *);
88 static int smb_set_alloc_info(smb_request_t *sr, smb_setinfo_t *);
[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_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_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_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 *);
47 uint32_t (*ioctl_func)(smb_request_t *sr, smb_xa_t *xa);
88 smb_nt_transact_ioctl(smb_request_t *sr, smb_xa_t *xa) in smb_nt_transact_ioctl()
125 smb_nt_trans_ioctl_noop(smb_request_t *sr, smb_xa_t *xa) in smb_nt_trans_ioctl_noop()
132 smb_nt_trans_ioctl_invalid_parm(smb_request_t *sr, smb_xa_t *xa) in smb_nt_trans_ioctl_invalid_parm()
148 smb_nt_trans_ioctl_set_sparse(smb_request_t *sr, smb_xa_t *xa) in smb_nt_trans_ioctl_set_sparse()
[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_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 Dsmb_query_fileinfo.c87 static int smb_query_by_fid(smb_request_t *, smb_xa_t *, uint16_t);
88 static int smb_query_by_path(smb_request_t *, smb_xa_t *, uint16_t);
90 static int smb_query_fileinfo(smb_request_t *, smb_node_t *,
92 static int smb_query_pipeinfo(smb_request_t *, smb_opipe_t *,
94 static boolean_t smb_query_pipe_valid_infolev(smb_request_t *, uint16_t);
96 static int smb_query_encode_response(smb_request_t *, smb_xa_t *,
98 static void smb_encode_stream_info(smb_request_t *, smb_xa_t *,
100 static boolean_t smb_stream_fits(smb_request_t *, smb_xa_t *, char *, uint32_t);
101 static int smb_query_pathname(smb_request_t *, smb_node_t *, boolean_t,
129 smb_com_trans2_query_path_information(smb_request_t *sr, smb_xa_t *xa) in smb_com_trans2_query_path_information()
[all …]
H A Dsmb_rename.c49 static int smb_common_rename(smb_request_t *, smb_fqi_t *, smb_fqi_t *);
50 static int smb_make_link(smb_request_t *, smb_fqi_t *, smb_fqi_t *);
52 static int smb_rename_check_attr(smb_request_t *, smb_node_t *, uint16_t);
53 static void smb_rename_set_error(smb_request_t *, int);
55 static int smb_rename_lookup_src(smb_request_t *);
56 static void smb_rename_release_src(smb_request_t *);
76 smb_pre_rename(smb_request_t *sr) in smb_pre_rename()
89 DTRACE_SMB_2(op__Rename__start, smb_request_t *, sr, in smb_pre_rename()
96 smb_post_rename(smb_request_t *sr) in smb_post_rename()
98 DTRACE_SMB_1(op__Rename__done, smb_request_t *, sr); in smb_post_rename()
[all …]
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_find.c204 smb_pre_search(smb_request_t *sr) in smb_pre_search()
206 DTRACE_SMB_1(op__Search__start, smb_request_t *, sr); in smb_pre_search()
211 smb_post_search(smb_request_t *sr) in smb_post_search()
213 DTRACE_SMB_1(op__Search__done, smb_request_t *, sr); in smb_post_search()
217 smb_com_search(smb_request_t *sr) in smb_com_search()
388 smb_pre_find(smb_request_t *sr) in smb_pre_find()
390 DTRACE_SMB_1(op__Find__start, smb_request_t *, sr); in smb_pre_find()
395 smb_post_find(smb_request_t *sr) in smb_post_find()
397 DTRACE_SMB_1(op__Find__done, smb_request_t *, sr); in smb_post_find()
401 smb_com_find(smb_request_t *sr) in smb_com_find()
[all …]
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()
H A Dsmb_pathname.c31 static char *smb_pathname_catia_v5tov4(smb_request_t *, char *, char *, int);
32 static char *smb_pathname_catia_v4tov5(smb_request_t *, char *, char *, int);
35 static char *smb_pathname_strdup(smb_request_t *, const char *);
36 static char *smb_pathname_strcat(smb_request_t *, char *, const char *);
37 static void smb_pathname_preprocess(smb_request_t *, smb_pathname_t *);
38 static void smb_pathname_preprocess_quota(smb_request_t *, smb_pathname_t *);
39 static int smb_pathname_dfs_preprocess(smb_request_t *, char *, size_t);
40 static void smb_pathname_preprocess_adminshare(smb_request_t *,
145 smb_request_t *sr, in smb_pathname_reduce()
341 smb_pathname(smb_request_t *sr, char *path, int flags, in smb_pathname()
[all …]
H A Dsmb_flush.c57 smb_pre_flush(smb_request_t *sr) in smb_pre_flush()
63 DTRACE_SMB_1(op__Flush__start, smb_request_t *, sr); in smb_pre_flush()
69 smb_post_flush(smb_request_t *sr) in smb_post_flush()
71 DTRACE_SMB_1(op__Flush__done, smb_request_t *, sr); in smb_post_flush()
75 smb_com_flush(smb_request_t *sr) in smb_com_flush()
H A Dsmb_lock_byte_range.c63 smb_pre_lock_byte_range(smb_request_t *sr) in smb_pre_lock_byte_range()
65 DTRACE_SMB_1(op__LockByteRange__start, smb_request_t *, sr); in smb_pre_lock_byte_range()
70 smb_post_lock_byte_range(smb_request_t *sr) in smb_post_lock_byte_range()
72 DTRACE_SMB_1(op__LockByteRange__done, smb_request_t *, sr); in smb_post_lock_byte_range()
H A Dsmb_fsinfo.c60 static int smb_fssize(smb_request_t *, smb_fssize_t *);
61 static int smb_trans2_set_fs_ctrl_info(smb_request_t *, smb_xa_t *);
86 smb_pre_query_information_disk(smb_request_t *sr) in smb_pre_query_information_disk()
88 DTRACE_SMB_1(op__QueryInformationDisk__start, smb_request_t *, sr); in smb_pre_query_information_disk()
93 smb_post_query_information_disk(smb_request_t *sr) in smb_post_query_information_disk()
95 DTRACE_SMB_1(op__QueryInformationDisk__done, smb_request_t *, sr); in smb_post_query_information_disk()
99 smb_com_query_information_disk(smb_request_t *sr) in smb_com_query_information_disk()
188 smb_com_trans2_query_fs_information(smb_request_t *sr, smb_xa_t *xa) in smb_com_trans2_query_fs_information()
416 smb_fssize(smb_request_t *sr, smb_fssize_t *fssize) in smb_fssize()
473 smb_com_trans2_set_fs_information(smb_request_t *sr, smb_xa_t *xa) in smb_com_trans2_set_fs_information()
[all …]

123