/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | smb.d | 82 soi_curpath = (P->fid_ofile == NULL || 83 P->fid_ofile->f_node == NULL || 84 P->fid_ofile->f_node->vp == NULL || 85 P->fid_ofile->f_node->vp->v_path == NULL) ? "<NULL>" : 86 P->fid_ofile->f_node->vp->v_path; 163 soi_curpath = (P->fid_ofile == NULL || 164 P->fid_ofile->f_node == NULL || 165 P->fid_ofile->f_node->vp == NULL || 166 P->fid_ofile->f_node->vp->v_path == NULL) ? "<NULL>" : 167 P->fid_ofile->f_node->vp->v_path;
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_nt_transact_ioctl.c | 159 if (sr->fid_ofile == NULL) in smb_nt_trans_ioctl_set_sparse() 162 if (!SMB_FTYPE_IS_DISK(sr->fid_ofile->f_ftype)) { in smb_nt_trans_ioctl_set_sparse() 167 of = sr->fid_ofile; in smb_nt_trans_ioctl_set_sparse() 241 if (sr->fid_ofile == NULL) in smb_nt_trans_ioctl_set_zero_data() 244 if (!SMB_FTYPE_IS_DISK(sr->fid_ofile->f_ftype)) { in smb_nt_trans_ioctl_set_zero_data() 249 node = sr->fid_ofile->f_node; in smb_nt_trans_ioctl_set_zero_data() 278 if (sr->fid_ofile == NULL) in smb_nt_trans_ioctl_query_alloc_ranges() 281 if (!SMB_FTYPE_IS_DISK(sr->fid_ofile->f_ftype)) { in smb_nt_trans_ioctl_query_alloc_ranges() 286 of = sr->fid_ofile; in smb_nt_trans_ioctl_query_alloc_ranges() 340 if (sr->fid_ofile == NULL) in smb_nt_trans_ioctl_enum_snaps() [all …]
|
H A D | smb2_lock.c | 81 if (sr->fid_ofile->f_node == NULL || LockCount == 0) { in smb2_lock() 100 sr->fid_ofile->dh_vers != SMB2_RESILIENT) in smb2_lock() 105 smb2_lock_chk_lockseq(sr->fid_ofile, LockSequence)) { in smb2_lock() 145 if (sr->fid_ofile->dh_persist) { in smb2_lock() 146 smb2_dh_update_locks(sr, sr->fid_ofile); in smb2_lock() 195 smb2_lock_set_lockseq(sr->fid_ofile, LockSequence); in smb2_unlock() 274 smb2_lock_set_lockseq(sr->fid_ofile, LockSequence); in smb2_locks() 294 ASSERT(sr->fid_ofile->f_node != NULL); in smb2_lock_blocking() 328 smb2_lock_set_lockseq(sr->fid_ofile, LockSequence); in smb2_lock_blocking()
|
H A D | smb_close.c | 64 if (sr->fid_ofile == NULL) { in smb_com_close() 70 smb_ofile_close(sr->fid_ofile, mtime); in smb_com_close() 105 if (sr->fid_ofile == NULL) { in smb_com_close_and_tree_disconnect() 111 smb_ofile_close(sr->fid_ofile, mtime); in smb_com_close_and_tree_disconnect()
|
H A D | smb2_fsctl_fs.c | 107 smb_ofile_t *of = sr->fid_ofile; in smb2_fsctl_get_resume_key() 189 if (sr->fid_ofile == NULL || in smb2_fsctl_fs() 190 !SMB_FTYPE_IS_DISK(sr->fid_ofile->f_ftype)) in smb2_fsctl_fs() 241 if (need_disk_file && (sr->fid_ofile == NULL || in smb2_fsctl_netfs() 242 !SMB_FTYPE_IS_DISK(sr->fid_ofile->f_ftype))) in smb2_fsctl_netfs()
|
H A D | smb_cmn_setfile.c | 115 rc = smb_node_setattr(sr, node, sr->user_cr, sr->fid_ofile, attr); in smb_set_basic_info() 143 status = smb_oplock_break_SETINFO(node, sr->fid_ofile, in smb_set_eof_info() 157 rc = smb_node_setattr(sr, node, sr->user_cr, sr->fid_ofile, attr); in smb_set_eof_info() 185 status = smb_oplock_break_SETINFO(node, sr->fid_ofile, in smb_set_alloc_info() 199 rc = smb_node_setattr(sr, node, sr->user_cr, sr->fid_ofile, attr); in smb_set_alloc_info() 248 smb_ofile_t *of = sr->fid_ofile; in smb_set_disposition_info()
|
H A D | smb_write.c | 85 if (sr->fid_ofile == NULL) { in smb_com_write() 90 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_com_write() 174 if (sr->fid_ofile == NULL) { in smb_com_write_and_close() 179 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_com_write_and_close() 207 smb_ofile_close(sr->fid_ofile, param->rw_last_write); in smb_com_write_and_close() 276 if (sr->fid_ofile == NULL) { in smb_com_write_and_unlock() 281 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_com_write_and_unlock() 439 if (sr->fid_ofile == NULL) { in smb_com_write_andx() 444 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_com_write_andx() 489 smb_ofile_t *ofile = sr->fid_ofile; in smb_common_write() [all …]
|
H A D | smb_read.c | 97 if (sr->fid_ofile == NULL) { in smb_com_read() 102 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_com_read() 188 if (sr->fid_ofile == NULL) { in smb_com_lock_and_read() 193 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_com_lock_and_read() 324 if (sr->fid_ofile == NULL) { in smb_com_read_andx() 329 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_com_read_andx() 396 smb_ofile_t *ofile = sr->fid_ofile; in smb_common_read() 480 mutex_enter(&sr->fid_ofile->f_mutex); in smb_common_read() 482 mutex_exit(&sr->fid_ofile->f_mutex); in smb_common_read()
|
H A D | smb2_setinfo_sec.c | 49 if ((sr->fid_ofile->f_node == NULL) || in smb2_setinfo_sec() 50 (sr->fid_ofile->f_ftype != SMB_FTYPE_DISK)) in smb2_setinfo_sec() 75 if (!smb_node_is_system(sr->fid_ofile->f_node)) in smb2_setinfo_sec()
|
H A D | smb_seek.c | 107 if (sr->fid_ofile == NULL) { in smb_com_seek() 112 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_com_seek() 114 if ((rc = smb_ofile_seek(sr->fid_ofile, mode, off, &off_ret)) != 0) { in smb_com_seek()
|
H A D | smb_nt_transact_security.c | 75 if (sr->fid_ofile == NULL) { in smb_nt_transact_query_security_info() 81 if ((sr->fid_ofile->f_node == NULL) || in smb_nt_transact_query_security_info() 82 (sr->fid_ofile->f_ftype != SMB_FTYPE_DISK)) { in smb_nt_transact_query_security_info() 88 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_nt_transact_query_security_info() 166 if (sr->fid_ofile == NULL) { in smb_nt_transact_set_security_info() 171 if ((sr->fid_ofile->f_node == NULL) || in smb_nt_transact_set_security_info() 172 (sr->fid_ofile->f_ftype != SMB_FTYPE_DISK)) { in smb_nt_transact_set_security_info() 177 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_nt_transact_set_security_info() 208 if (!smb_node_is_system(sr->fid_ofile->f_node)) in smb_nt_transact_set_security_info()
|
H A D | smb2_lease.c | 154 smb_ofile_t *of = sr->fid_ofile; in smb2_lease_create() 282 ASSERT(sr->fid_ofile == NULL); in lease_find_oplock() 294 sr->fid_ofile = o; in lease_find_oplock() 376 ofile = sr->fid_ofile; in smb2_lease_break_ack() 462 smb_lease_t *ls = sr->fid_ofile->f_lease; in smb2_lease_break_notification() 518 smb_ofile_t *ofile = sr->fid_ofile; in lease_send_any_cn() 578 smb_ofile_t *ofile = sr->fid_ofile; in lease_close_notconn() 642 smb_ofile_t *ofile = sr->fid_ofile; in smb2_lease_send_break() 719 sr->fid_ofile = NULL; in smb2_lease_send_break() 723 sr->fid_ofile = old_ofile; in smb2_lease_send_break() [all …]
|
H A D | smb2_setinfo_file.c | 43 smb_ofile_t *of = sr->fid_ofile; in smb2_setinfo_file() 179 smb_ofile_t *of = sr->fid_ofile; in smb2_setf_seek() 238 smb_ofile_t *of = sr->fid_ofile; in smb2_setf_pipe() 275 smb_ofile_t *of = sr->fid_ofile; in smb2_setf_valid_len() 302 smb_ofile_t *of = sr->fid_ofile; in smb2_setf_shortname()
|
H A D | smb_query_fileinfo.c | 227 if (sr->fid_ofile == NULL) { in smb_query_by_fid() 238 if ((sr->fid_ofile->f_ftype == SMB_FTYPE_MESG_PIPE) && in smb_query_by_fid() 244 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_query_by_fid() 247 switch (sr->fid_ofile->f_ftype) { in smb_query_by_fid() 249 node = sr->fid_ofile->f_node; in smb_query_by_fid() 253 opipe = sr->fid_ofile->f_pipe; in smb_query_by_fid() 303 if (sr->fid_ofile != NULL) in smb_query_by_path() 414 ASSERT(sr->fid_ofile); in smb_query_encode_response() 416 sr->fid_ofile->f_granted_access); in smb_query_encode_response() 780 rc = smb_node_getattr(sr, node, sr->user_cr, sr->fid_ofile, in smb_query_fileinfo()
|
H A D | smb2_qinfo_file.c | 60 smb_ofile_t *of = sr->fid_ofile; in smb2_qinfo_file() 389 smb_ofile_t *of = sr->fid_ofile; in smb2_qif_access() 468 smb_ofile_t *of = sr->fid_ofile; in smb2_qif_position() 491 smb_ofile_t *of = sr->fid_ofile; in smb2_qif_mode() 547 smb_ofile_t *of = sr->fid_ofile; in smb2_qif_altname() 577 smb_ofile_t *of = sr->fid_ofile; in smb2_qif_stream() 599 smb_ofile_t *of = sr->fid_ofile; in smb2_qif_pipe() 733 smb_ofile_t *of = sr->fid_ofile; in smb2_qif_id_info()
|
H A D | smb_oplock.c | 47 ofile = sr->fid_ofile; in smb1_oplock_ack_break() 77 smb_ofile_t *ofile = sr->fid_ofile; in smb1_oplock_break_notification() 139 smb_ofile_t *ofile = sr->fid_ofile; in smb1_oplock_send_break() 238 smb_ofile_t *ofile = sr->fid_ofile; in smb1_oplock_acquire()
|
H A D | smb2_oplock.c | 129 ofile = sr->fid_ofile; in smb2_oplock_break_ack() 223 smb_ofile_t *ofile = sr->fid_ofile; in smb2_oplock_break_notification() 301 smb_ofile_t *ofile = sr->fid_ofile; in smb2_oplock_send_break() 412 smb_ofile_t *ofile = sr->fid_ofile; in smb2_oplock_acquire() 551 smb_ofile_t *ofile = sr->fid_ofile; in smb2_oplock_reconnect()
|
H A D | smb2_qinfo_sec.c | 51 if ((sr->fid_ofile->f_node == NULL) || in smb2_qinfo_sec() 52 (sr->fid_ofile->f_ftype != SMB_FTYPE_DISK)) in smb2_qinfo_sec()
|
H A D | smb_set_fileinfo.c | 224 if (sr->fid_ofile == NULL) { in smb_set_by_fid() 229 if (!SMB_FTYPE_IS_DISK(sr->fid_ofile->f_ftype)) { in smb_set_by_fid() 234 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_set_by_fid() 237 sinfo.si_node = sr->fid_ofile->f_node; in smb_set_by_fid() 461 sr->fid_ofile, &attr); in smb_set_information2() 504 rc = smb_node_setattr(sr, node, sr->user_cr, sr->fid_ofile, &attr); in smb_set_standard_info()
|
H A D | smb_print.c | 285 if (sr->fid_ofile == NULL) { in smb_com_write_print_file() 290 node = sr->fid_ofile->f_node; in smb_com_write_print_file() 291 sr->user_cr = smb_ofile_getcred(sr->fid_ofile); in smb_com_write_print_file() 295 rc = smb_node_getattr(sr, node, sr->user_cr, sr->fid_ofile, &attr); in smb_com_write_print_file()
|
H A D | smb2_fsctl_copychunk.c | 77 smb_ofile_t *dst_of = sr->fid_ofile; in smb2_fsctl_copychunk() 428 smb_ofile_t *dst_of = sr->fid_ofile; in smb2_fsctl_copychunk_meta() 454 sr->fid_ofile = NULL; in smb2_fsctl_copychunk_meta() 460 sr->fid_ofile = dst_of; in smb2_fsctl_copychunk_meta() 475 smb_ofile_t *dst_ofile = sr->fid_ofile; in smb2_fsctl_copychunk_1()
|
H A D | smb_flush.c | 90 if (sr->fid_ofile == NULL) { in smb_com_flush() 95 smb_ofile_flush(sr, sr->fid_ofile); in smb_com_flush()
|
H A D | smb2_set_info.c | 81 sinfo.si_node = sr->fid_ofile->f_node; in smb2_set_info() 82 sr->user_cr = sr->fid_ofile->f_cr; in smb2_set_info()
|
H A D | smb_lock.c | 104 smb_ofile_t *file = sr->fid_ofile; in smb_unlock_range() 118 (void *)sr->fid_ofile, pid); in smb_unlock_range() 178 smb_ofile_t *file = sr->fid_ofile; in smb_lock_range() 197 (void *)sr->fid_ofile, pid, locktype, timeout); in smb_lock_range() 391 lock->l_file == sr->fid_ofile && in smb_lock_range_access() 495 node = sr->fid_ofile->f_node; in smb_lock_range_cancel() 504 (void *)sr->fid_ofile, pid); in smb_lock_range_cancel() 514 lock->l_file == sr->fid_ofile && in smb_lock_range_cancel() 996 lock->l_file = sr->fid_ofile; in smb_lock_create()
|
H A D | smb_srv_oplock.c | 222 sr->fid_ofile = ofile; in smb_oplock_ind_break_in_ack() 357 sr->fid_ofile = ofile; in smb_oplock_ind_break() 455 smb_ofile_t *ofile = sr->fid_ofile; in smb_oplock_send_break() 541 smb_ofile_t *ofile = sr->fid_ofile; in smb_oplock_hdl_update() 622 smb_ofile_t *ofile = sr->fid_ofile; in smb_oplock_wait_ack_cancel() 645 smb_ofile_t *ofile = sr->fid_ofile; in smb_oplock_wait_ack()
|