Home
last modified time | relevance | path

Searched refs:fid_ofile (Results 1 – 25 of 59) sorted by relevance

123

/illumos-gate/usr/src/lib/libdtrace/common/
H A Dsmb.d82 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 Dsmb_nt_transact_ioctl.c159 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 Dsmb2_lock.c81 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 Dsmb_close.c64 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 Dsmb2_fsctl_fs.c107 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 Dsmb_cmn_setfile.c115 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 Dsmb_write.c85 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 Dsmb_read.c97 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 Dsmb2_setinfo_sec.c49 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 Dsmb_seek.c107 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 Dsmb_nt_transact_security.c75 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 Dsmb2_lease.c154 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 Dsmb2_setinfo_file.c43 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 Dsmb_query_fileinfo.c227 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 Dsmb2_qinfo_file.c60 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 Dsmb_oplock.c47 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 Dsmb2_oplock.c129 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 Dsmb2_qinfo_sec.c51 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 Dsmb_set_fileinfo.c224 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 Dsmb_print.c285 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 Dsmb2_fsctl_copychunk.c77 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 Dsmb_flush.c90 if (sr->fid_ofile == NULL) { in smb_com_flush()
95 smb_ofile_flush(sr, sr->fid_ofile); in smb_com_flush()
H A Dsmb2_set_info.c81 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 Dsmb_lock.c104 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 Dsmb_srv_oplock.c222 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()

123