/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb2_dispatch.c | 22 #define SMB2_ASYNCID(sr) (sr->smb2_messageid ^ (1ULL << 62)) argument 103 smb2_invalid_cmd(smb_request_t *sr) in smb2_invalid_cmd() argument 107 sr->session->ip_addr_str); in smb2_invalid_cmd() 109 sr->smb2_status = NT_STATUS_INVALID_PARAMETER; in smb2_invalid_cmd() 128 smb2sr_newrq(smb_request_t *sr) in smb2sr_newrq() argument 130 struct mbuf_chain *mbc = &sr->command; in smb2sr_newrq() 140 if (smb3_decrypt_msg(sr) != 0) in smb2sr_newrq() 158 if (smb2_decode_header(sr) != 0) in smb2sr_newrq() 168 if (sr->smb2_cmd_code == SMB2_CANCEL) { in smb2sr_newrq() 169 rc = smb2_newrq_cancel(sr); in smb2sr_newrq() [all …]
|
H A D | smb_dispatch.c | 490 smbsr_cleanup(smb_request_t *sr) in smbsr_cleanup() argument 492 ASSERT((sr->sr_state != SMB_REQ_STATE_CLEANED_UP) && in smbsr_cleanup() 493 (sr->sr_state != SMB_REQ_STATE_COMPLETED)); in smbsr_cleanup() 495 if (sr->r_xa) { in smbsr_cleanup() 496 if (sr->r_xa->xa_flags & SMB_XA_FLAG_COMPLETE) in smbsr_cleanup() 497 smb_xa_close(sr->r_xa); in smbsr_cleanup() 498 smb_xa_rele(sr->session, sr->r_xa); in smbsr_cleanup() 499 sr->r_xa = NULL; in smbsr_cleanup() 507 mutex_enter(&sr->sr_mutex); in smbsr_cleanup() 508 if (sr->sr_state != SMB_REQ_STATE_CANCELLED) in smbsr_cleanup() [all …]
|
H A D | smb_tree_connect.c | 30 smb_tcon_puterror(smb_request_t *sr, uint32_t status) in smb_tcon_puterror() argument 37 smbsr_error(sr, 0, ERRSRV, ERRinvnetname); in smb_tcon_puterror() 41 smbsr_error(sr, status, ERRSRV, ERRaccess); in smb_tcon_puterror() 45 smbsr_error(sr, status, ERRDOS, ERROR_BAD_DEV_TYPE); in smb_tcon_puterror() 51 smbsr_error(sr, 0, ERRSRV, ERRsrverror); in smb_tcon_puterror() 89 smb_pre_tree_connect(smb_request_t *sr) in smb_pre_tree_connect() argument 91 smb_arg_tcon_t *tcon = &sr->sr_tcon; in smb_pre_tree_connect() 97 rc = smbsr_decode_data(sr, "%AAA", sr, &tcon->path, in smb_pre_tree_connect() 103 DTRACE_SMB_START(op__TreeConnect, smb_request_t *, sr); in smb_pre_tree_connect() 109 smb_post_tree_connect(smb_request_t *sr) in smb_post_tree_connect() argument [all …]
|
H A D | smb_write.c | 48 smb_pre_write(smb_request_t *sr) in smb_pre_write() argument 56 sr->arg.rw = param; in smb_pre_write() 59 rc = smbsr_decode_vwv(sr, "wwl", &sr->smb_fid, &count, &off); in smb_pre_write() 65 DTRACE_SMB_START(op__Write, smb_request_t *, sr); /* arg.rw */ in smb_pre_write() 71 smb_post_write(smb_request_t *sr) in smb_post_write() argument 73 DTRACE_SMB_DONE(op__Write, smb_request_t *, sr); /* arg.rw */ in smb_post_write() 75 kmem_free(sr->arg.rw, sizeof (smb_rw_param_t)); in smb_post_write() 79 smb_com_write(smb_request_t *sr) in smb_com_write() argument 81 smb_rw_param_t *param = sr->arg.rw; in smb_com_write() 84 smbsr_lookup_file(sr); in smb_com_write() [all …]
|
H A D | smb_print.c | 56 smb_pre_open_print_file(smb_request_t *sr) in smb_pre_open_print_file() argument 58 struct open_param *op = &sr->arg.open; in smb_pre_open_print_file() 67 bzero(op, sizeof (sr->arg.open)); in smb_pre_open_print_file() 68 rc = smbsr_decode_vwv(sr, "ww", &setup, &mode); in smb_pre_open_print_file() 70 rc = smbsr_decode_data(sr, "%S", sr, &identifier); in smb_pre_open_print_file() 73 path = smb_srm_zalloc(sr, MAXPATHLEN); in smb_pre_open_print_file() 81 DTRACE_SMB_START(op__OpenPrintFile, smb_request_t *, sr); /* arg.open */ in smb_pre_open_print_file() 87 smb_post_open_print_file(smb_request_t *sr) in smb_post_open_print_file() argument 89 DTRACE_SMB_DONE(op__OpenPrintFile, smb_request_t *, sr); in smb_post_open_print_file() 104 smb_com_open_print_file(smb_request_t *sr) in smb_com_open_print_file() argument [all …]
|
H A D | smb_session_setup_andx.c | 36 smb_pre_session_setup_andx(smb_request_t *sr) in smb_pre_session_setup_andx() argument 43 sinfo = smb_srm_zalloc(sr, sizeof (smb_arg_sessionsetup_t)); in smb_pre_session_setup_andx() 44 sr->sr_ssetup = sinfo; in smb_pre_session_setup_andx() 51 if (sr->smb_wct < 10) { in smb_pre_session_setup_andx() 60 rc = smbsr_decode_vwv(sr, "b.www6.", in smb_pre_session_setup_andx() 61 &sr->andx_com, &sr->andx_off, in smb_pre_session_setup_andx() 66 if (sr->session->dialect < NT_LM_0_12) { in smb_pre_session_setup_andx() 71 rc = smbsr_decode_vwv(sr, "w4.", in smb_pre_session_setup_andx() 76 sinfo->ssi_lmpwd = smb_srm_zalloc(sr, sinfo->ssi_lmpwlen + 1); in smb_pre_session_setup_andx() 77 rc = smbsr_decode_data(sr, "%#c", sr, sinfo->ssi_lmpwlen, in smb_pre_session_setup_andx() [all …]
|
H A D | smb_directory.c | 55 smb_pre_create_directory(smb_request_t *sr) in smb_pre_create_directory() argument 59 rc = smbsr_decode_data(sr, "%S", sr, in smb_pre_create_directory() 60 &sr->arg.dirop.fqi.fq_path.pn_path); in smb_pre_create_directory() 62 DTRACE_SMB_START(op__CreateDirectory, smb_request_t *, sr); in smb_pre_create_directory() 68 smb_post_create_directory(smb_request_t *sr) in smb_post_create_directory() argument 70 DTRACE_SMB_DONE(op__CreateDirectory, smb_request_t *, sr); in smb_post_create_directory() 74 smb_com_create_directory(smb_request_t *sr) in smb_com_create_directory() argument 77 smb_pathname_t *pn = &sr->arg.dirop.fqi.fq_path; in smb_com_create_directory() 79 if (!STYPE_ISDSK(sr->tid_tree->t_res_type)) { in smb_com_create_directory() 80 smbsr_error(sr, NT_STATUS_ACCESS_DENIED, in smb_com_create_directory() [all …]
|
H A D | smb_read.c | 58 smb_pre_read(smb_request_t *sr) in smb_pre_read() argument 67 sr->arg.rw = param; in smb_pre_read() 69 rc = smbsr_decode_vwv(sr, "wwlw", &sr->smb_fid, in smb_pre_read() 76 DTRACE_SMB_START(op__Read, smb_request_t *, sr); /* arg.rw */ in smb_pre_read() 82 smb_post_read(smb_request_t *sr) in smb_post_read() argument 84 DTRACE_SMB_DONE(op__Read, smb_request_t *, sr); /* arg.rw */ in smb_post_read() 86 kmem_free(sr->arg.rw, sizeof (smb_rw_param_t)); in smb_post_read() 90 smb_com_read(smb_request_t *sr) in smb_com_read() argument 92 smb_rw_param_t *param = sr->arg.rw; in smb_com_read() 96 smbsr_lookup_file(sr); in smb_com_read() [all …]
|
H A D | smb_set_fileinfo.c | 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() argument 90 &sr->smb_fid, &infolev) != 0) in smb_com_trans2_set_file_information() 93 if (smb_set_by_fid(sr, xa, infolev) != 0) 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() argument 106 smb_fqi_t *fqi = &sr->arg.dirop.fqi; in smb_com_trans2_set_path_information() 108 if (STYPE_ISIPC(sr->tid_tree->t_res_type)) { in smb_com_trans2_set_path_information() 109 smbsr_error(sr, NT_STATUS_INVALID_DEVICE_REQUEST, in smb_com_trans2_set_path_information() 115 sr, &infolev, &fqi->fq_path.pn_path) != 0) in smb_com_trans2_set_path_information() 118 if (smb_set_by_path(sr, xa, infolev) != 0) in smb_com_trans2_set_path_information() [all …]
|
H A D | smb_nt_transact_ioctl.c | 44 uint32_t (*ioctl_func)(smb_request_t *sr, smb_xa_t *xa); 85 smb_nt_transact_ioctl(smb_request_t *sr, smb_xa_t *xa) in smb_nt_transact_ioctl() argument 94 &fcode, &sr->smb_fid, &is_fsctl, &is_flags) != 0) { in smb_nt_transact_ioctl() 95 smbsr_error(sr, NT_STATUS_INVALID_PARAMETER, 0, 0); in smb_nt_transact_ioctl() 106 status = ioctl_ret_tbl[i].ioctl_func(sr, xa); in smb_nt_transact_ioctl() 112 smbsr_error(sr, status, 0, 0); in smb_nt_transact_ioctl() 122 smb_nt_trans_ioctl_noop(smb_request_t *sr, smb_xa_t *xa) in smb_nt_trans_ioctl_noop() argument 129 smb_nt_trans_ioctl_invalid_parm(smb_request_t *sr, smb_xa_t *xa) in smb_nt_trans_ioctl_invalid_parm() argument 145 smb_nt_trans_ioctl_set_sparse(smb_request_t *sr, smb_xa_t *xa) in smb_nt_trans_ioctl_set_sparse() argument 152 if (SMB_TREE_IS_READONLY(sr)) in smb_nt_trans_ioctl_set_sparse() [all …]
|
H A D | smb_negotiate.c | 288 smb1_newrq_negotiate(smb_request_t *sr) in smb1_newrq_negotiate() argument 296 if (smb_mbc_decodef(&sr->command, SMB_HEADER_ED_FMT, in smb1_newrq_negotiate() 297 &sr->smb_com, in smb1_newrq_negotiate() 298 &sr->smb_rcls, in smb1_newrq_negotiate() 299 &sr->smb_reh, in smb1_newrq_negotiate() 300 &sr->smb_err, in smb1_newrq_negotiate() 301 &sr->smb_flg, in smb1_newrq_negotiate() 302 &sr->smb_flg2, in smb1_newrq_negotiate() 304 sr->smb_sig, in smb1_newrq_negotiate() 305 &sr->smb_tid, in smb1_newrq_negotiate() [all …]
|
H A D | smb_rename.c | 62 smb_pre_rename(smb_request_t *sr) in smb_pre_rename() argument 64 smb_fqi_t *src_fqi = &sr->arg.dirop.fqi; in smb_pre_rename() 65 smb_fqi_t *dst_fqi = &sr->arg.dirop.dst_fqi; in smb_pre_rename() 68 if ((rc = smbsr_decode_vwv(sr, "w", &src_fqi->fq_sattr)) == 0) { in smb_pre_rename() 69 rc = smbsr_decode_data(sr, "%SS", sr, &src_fqi->fq_path.pn_path, in smb_pre_rename() 75 DTRACE_SMB_START(op__Rename, smb_request_t *, sr); /* arg.dirop */ in smb_pre_rename() 81 smb_post_rename(smb_request_t *sr) in smb_post_rename() argument 83 DTRACE_SMB_DONE(op__Rename, smb_request_t *, sr); in smb_post_rename() 87 smb_com_rename(smb_request_t *sr) in smb_com_rename() argument 89 smb_fqi_t *src_fqi = &sr->arg.dirop.fqi; in smb_com_rename() [all …]
|
H A D | smb_srv_oplock.c | 76 static void smb_oplock_hdl_update(smb_request_t *sr); 79 static void smb_oplock_wait_break_cancel(smb_request_t *sr); 166 smb_request_t *sr = NULL; in smb_oplock_ind_break_in_ack() local 201 sr = smb_request_alloc(ack_sr->session, 0); in smb_oplock_ind_break_in_ack() 202 if (sr == NULL) { in smb_oplock_ind_break_in_ack() 204 sr = smb_request_alloc(sv->sv_session, 0); in smb_oplock_ind_break_in_ack() 206 if (sr == NULL) { in smb_oplock_ind_break_in_ack() 219 sr->sr_state = SMB_REQ_STATE_SUBMITTED; in smb_oplock_ind_break_in_ack() 220 sr->smb2_async = B_TRUE; in smb_oplock_ind_break_in_ack() 221 sr->user_cr = zone_kcred(); in smb_oplock_ind_break_in_ack() [all …]
|
H A D | smb_close.c | 42 smb_pre_close(smb_request_t *sr) in smb_pre_close() argument 46 rc = smbsr_decode_vwv(sr, "wl", &sr->smb_fid, &sr->arg.timestamp); in smb_pre_close() 48 DTRACE_SMB_START(op__Close, smb_request_t *, sr); in smb_pre_close() 53 smb_post_close(smb_request_t *sr) in smb_post_close() argument 55 DTRACE_SMB_DONE(op__Close, smb_request_t *, sr); in smb_post_close() 59 smb_com_close(smb_request_t *sr) in smb_com_close() argument 63 smbsr_lookup_file(sr); in smb_com_close() 64 if (sr->fid_ofile == NULL) { in smb_com_close() 65 smbsr_error(sr, NT_STATUS_INVALID_HANDLE, ERRDOS, ERRbadfid); in smb_com_close() 69 mtime = smb_time_local_to_gmt(sr, sr->arg.timestamp); in smb_com_close() [all …]
|
H A D | smb_create.c | 36 smb_pre_create(smb_request_t *sr) in smb_pre_create() argument 38 struct open_param *op = &sr->arg.open; in smb_pre_create() 41 bzero(op, sizeof (sr->arg.open)); in smb_pre_create() 43 rc = smbsr_decode_vwv(sr, "wl", &op->dattr, &op->mtime.tv_sec); in smb_pre_create() 45 rc = smbsr_decode_data(sr, "%S", sr, &op->fqi.fq_path.pn_path); in smb_pre_create() 50 DTRACE_SMB_START(op__Create, smb_request_t *, sr); /* arg.open */ in smb_pre_create() 56 smb_post_create(smb_request_t *sr) in smb_post_create() argument 58 DTRACE_SMB_DONE(op__Create, smb_request_t *, sr); in smb_post_create() 62 smb_com_create(smb_request_t *sr) in smb_com_create() argument 64 if (smb_common_create(sr) != NT_STATUS_SUCCESS) in smb_com_create() [all …]
|
H A D | smb_find.c | 204 smb_pre_search(smb_request_t *sr) in smb_pre_search() argument 206 DTRACE_SMB_START(op__Search, smb_request_t *, sr); in smb_pre_search() 211 smb_post_search(smb_request_t *sr) in smb_post_search() argument 213 DTRACE_SMB_DONE(op__Search, smb_request_t *, sr); in smb_post_search() 217 smb_com_search(smb_request_t *sr) in smb_com_search() argument 238 if ((sr->session->dialect <= LANMAN1_0) || in smb_com_search() 239 ((sr->smb_flg2 & SMB_FLAGS2_KNOWS_LONG_NAMES) == 0)) { in smb_com_search() 244 sr->smb_flg2 &= ~SMB_FLAGS2_KNOWS_LONG_NAMES; in smb_com_search() 245 sr->smb_flg &= ~SMB_FLAGS_CASE_INSENSITIVE; in smb_com_search() 247 if (smbsr_decode_vwv(sr, "ww", &maxcount, &sattr) != 0) in smb_com_search() [all …]
|
H A D | smb_query_fileinfo.c | 101 smb_com_trans2_query_file_information(struct smb_request *sr, struct smb_xa *xa) in smb_com_trans2_query_file_information() argument 106 &sr->smb_fid, &infolev) != 0) in smb_com_trans2_query_file_information() 109 if (smb_query_by_fid(sr, xa, infolev) != 0) in smb_com_trans2_query_file_information() 119 smb_com_trans2_query_path_information(smb_request_t *sr, smb_xa_t *xa) in smb_com_trans2_query_path_information() argument 122 smb_fqi_t *fqi = &sr->arg.dirop.fqi; in smb_com_trans2_query_path_information() 124 if (STYPE_ISIPC(sr->tid_tree->t_res_type)) { in smb_com_trans2_query_path_information() 125 smbsr_error(sr, NT_STATUS_INVALID_DEVICE_REQUEST, in smb_com_trans2_query_path_information() 131 sr, &infolev, &fqi->fq_path.pn_path) != 0) in smb_com_trans2_query_path_information() 134 if (smb_query_by_path(sr, xa, infolev) != 0) in smb_com_trans2_query_path_information() 144 smb_pre_query_information(smb_request_t *sr) in smb_pre_query_information() argument [all …]
|
H A D | smb_common_transact.c | 57 smb_pre_transaction(smb_request_t *sr) in smb_pre_transaction() argument 59 DTRACE_SMB_START(op__Transaction, smb_request_t *, sr); in smb_pre_transaction() 64 smb_post_transaction(smb_request_t *sr) in smb_post_transaction() argument 66 DTRACE_SMB_DONE(op__Transaction, smb_request_t *, sr); in smb_post_transaction() 70 smb_com_transaction(smb_request_t *sr) in smb_com_transaction() argument 81 if (!STYPE_ISIPC(sr->tid_tree->t_res_type)) { in smb_com_transaction() 82 smbsr_error(sr, 0, ERRDOS, ERRnoaccess); in smb_com_transaction() 86 rc = smbsr_decode_vwv(sr, SMB_TRANSHDR_ED_FMT, in smb_com_transaction() 93 xa = smb_xa_create(sr->session, sr, tpscnt, tdscnt, mprcnt, mdrcnt, in smb_com_transaction() 96 smbsr_error(sr, 0, ERRSRV, ERRnoroom); in smb_com_transaction() [all …]
|
H A D | smb_authenticate.c | 63 smb_authenticate_old(smb_request_t *sr) in smb_authenticate_old() argument 68 user = smb_user_new(sr->session); in smb_authenticate_old() 73 sr->uid_user = user; in smb_authenticate_old() 74 sr->smb_uid = user->u_uid; in smb_authenticate_old() 75 sr->smb2_ssnid = 0; in smb_authenticate_old() 82 if ((status = smb_authsock_open(sr)) != 0) in smb_authenticate_old() 88 if ((status = smb_auth_do_clinfo(sr)) != 0) in smb_authenticate_old() 94 if ((status = smb_auth_do_oldreq(sr)) != 0) in smb_authenticate_old() 100 if ((status = smb_auth_get_token(sr)) != 0) in smb_authenticate_old() 115 smb_auth_do_oldreq(smb_request_t *sr) in smb_auth_do_oldreq() argument [all …]
|
H A D | smb2_change_notify.c | 38 smb2_change_notify(smb_request_t *sr) in smb2_change_notify() argument 53 &sr->smb_data, "wwlqqll", in smb2_change_notify() 64 status = smb2sr_lookup_fid(sr, &smb2fid); in smb2_change_notify() 65 DTRACE_SMB2_START(op__ChangeNotify, smb_request_t *, sr); in smb2_change_notify() 75 if (sr->smb2_next_command != 0) { in smb2_change_notify() 95 status = smb_notify_act1(sr, oBufLength, CompletionFilter); in smb2_change_notify() 97 status = smb2sr_go_async(sr); in smb2_change_notify() 100 status = smb_notify_act2(sr); in smb2_change_notify() 108 sr->smb2_status = status; in smb2_change_notify() 109 DTRACE_SMB2_DONE(op__ChangeNotify, smb_request_t *, sr); in smb2_change_notify() [all …]
|
H A D | smb2_cancel.c | 35 smb2_newrq_cancel(smb_request_t *sr) in smb2_newrq_cancel() argument 42 if (sr->smb2_next_command != 0) in smb2_newrq_cancel() 45 DTRACE_SMB2_START(op__Cancel, smb_request_t *, sr); in smb2_newrq_cancel() 47 if (sr->smb2_hdr_flags & SMB2_FLAGS_ASYNC_COMMAND) in smb2_newrq_cancel() 48 smb2_cancel_async(sr); in smb2_newrq_cancel() 50 smb2_cancel_sync(sr); in smb2_newrq_cancel() 52 DTRACE_SMB2_DONE(op__Cancel, smb_request_t *, sr); in smb2_newrq_cancel() 62 smb2_cancel(smb_request_t *sr) in smb2_cancel() argument 69 if (sr->smb2_cmd_hdr != 0 || sr->smb2_next_command != 0) in smb2_cancel() 72 DTRACE_SMB2_START(op__Cancel, smb_request_t *, sr); in smb2_cancel() [all …]
|
H A D | smb_open_andx.c | 219 smb_pre_open(smb_request_t *sr) in smb_pre_open() argument 221 struct open_param *op = &sr->arg.open; in smb_pre_open() 224 bzero(op, sizeof (sr->arg.open)); in smb_pre_open() 226 rc = smbsr_decode_vwv(sr, "ww", &op->omode, &op->fqi.fq_sattr); in smb_pre_open() 228 rc = smbsr_decode_data(sr, "%S", sr, &op->fqi.fq_path.pn_path); in smb_pre_open() 230 DTRACE_SMB_START(op__Open, smb_request_t *, sr); /* arg.open */ in smb_pre_open() 236 smb_post_open(smb_request_t *sr) in smb_post_open() argument 238 DTRACE_SMB_DONE(op__Open, smb_request_t *, sr); in smb_post_open() 242 smb_com_open(smb_request_t *sr) in smb_com_open() argument 244 struct open_param *op = &sr->arg.open; in smb_com_open() [all …]
|
H A D | smb_delete.c | 97 smb_pre_delete(smb_request_t *sr) in smb_pre_delete() argument 102 fqi = &sr->arg.dirop.fqi; in smb_pre_delete() 104 if ((rc = smbsr_decode_vwv(sr, "w", &fqi->fq_sattr)) == 0) in smb_pre_delete() 105 rc = smbsr_decode_data(sr, "%S", sr, &fqi->fq_path.pn_path); in smb_pre_delete() 107 DTRACE_SMB_START(op__Delete, smb_request_t *, sr); /* arg.dirop */ in smb_pre_delete() 113 smb_post_delete(smb_request_t *sr) in smb_post_delete() argument 115 DTRACE_SMB_DONE(op__Delete, smb_request_t *, sr); in smb_post_delete() 143 smb_com_delete(smb_request_t *sr) in smb_com_delete() argument 152 fqi = &sr->arg.dirop.fqi; in smb_com_delete() 155 smb_pathname_init(sr, pn, pn->pn_path); in smb_com_delete() [all …]
|
H A D | smb2_qinfo_file.c | 58 smb2_qinfo_file(smb_request_t *sr, smb_queryinfo_t *qi) in smb2_qinfo_file() argument 60 smb_ofile_t *of = sr->fid_ofile; in smb2_qinfo_file() 121 status = smb2_ofile_getattr(sr, of, &qi->qi_attr); in smb2_qinfo_file() 138 status = smb2_qif_basic(sr, qi); in smb2_qinfo_file() 141 status = smb2_qif_standard(sr, qi); in smb2_qinfo_file() 144 status = smb2_qif_internal(sr, qi); in smb2_qinfo_file() 147 status = smb2_qif_ea_size(sr, qi); in smb2_qinfo_file() 150 status = smb2_qif_access(sr, qi); in smb2_qinfo_file() 153 status = smb2_qif_name(sr, qi); in smb2_qinfo_file() 156 status = smb2_qif_normalized_name(sr, qi); in smb2_qinfo_file() [all …]
|
H A D | smb_cmn_rename.c | 59 smb_setinfo_rename(smb_request_t *sr, smb_node_t *node, char *path, int flags) in smb_setinfo_rename() argument 61 smb_fqi_t *src_fqi = &sr->arg.dirop.fqi; in smb_setinfo_rename() 62 smb_fqi_t *dst_fqi = &sr->arg.dirop.dst_fqi; in smb_setinfo_rename() 66 sr->arg.dirop.flags = flags ? SMB_RENAME_FLAG_OVERWRITE : 0; in smb_setinfo_rename() 67 sr->arg.dirop.info_level = FileRenameInformation; in smb_setinfo_rename() 74 smb_pathname_init(sr, dst_pn, path); in smb_setinfo_rename() 75 if (!smb_pathname_validate(sr, dst_pn)) in smb_setinfo_rename() 78 status = smb_common_rename(sr, src_fqi, dst_fqi); in smb_setinfo_rename() 97 smb_common_rename(smb_request_t *sr, smb_fqi_t *src_fqi, smb_fqi_t *dst_fqi) in smb_common_rename() argument 106 tnode = sr->tid_tree->t_snode; in smb_common_rename() [all …]
|