Home
last modified time | relevance | path

Searched refs:smb_node_t (Results 1 – 25 of 50) sorted by relevance

12

/illumos-gate/usr/src/uts/common/smbsrv/
H A Dsmb_fsops.h48 int smb_fsop_open(smb_node_t *, int, cred_t *);
49 void smb_fsop_close(smb_node_t *, int, cred_t *);
51 int smb_fsop_oplock_install(smb_node_t *, int);
52 void smb_fsop_oplock_uninstall(smb_node_t *);
54 int smb_fsop_create(smb_request_t *, cred_t *, smb_node_t *,
55 char *, smb_attr_t *, smb_node_t **);
58 smb_fsop_create_stream(smb_request_t *, cred_t *, smb_node_t *, smb_node_t *,
59 char *, int, smb_attr_t *, smb_node_t **);
61 int smb_fsop_mkdir(smb_request_t *, cred_t *, smb_node_t *,
62 char *, smb_attr_t *, smb_node_t **);
[all …]
H A Dsmb_kproto.h239 void smb_query_shortname(smb_node_t *, smb_queryinfo_t *);
252 uint32_t smb_setinfo_rename(smb_request_t *, smb_node_t *, char *, int);
255 uint32_t smb_setinfo_link(smb_request_t *, smb_node_t *, char *, int);
273 uint32_t smb_oplock_break_PARENT(smb_node_t *, smb_ofile_t *);
274 uint32_t smb_oplock_break_OPEN(smb_node_t *, smb_ofile_t *,
276 uint32_t smb_oplock_break_BATCH(smb_node_t *, smb_ofile_t *,
278 uint32_t smb_oplock_break_HANDLE(smb_node_t *, smb_ofile_t *);
279 void smb_oplock_break_CLOSE(smb_node_t *, smb_ofile_t *);
280 uint32_t smb_oplock_break_READ(smb_node_t *, smb_ofile_t *);
281 uint32_t smb_oplock_break_WRITE(smb_node_t *, smb_ofile_t *);
[all …]
H A Dsmb_ktypes.h691 } smb_node_t; typedef
730 smb_node_t *shr_root_node;
731 smb_node_t *shr_ca_dir;
1154 smb_node_t *t_snode;
1284 smb_node_t *d_dnode;
1413 smb_node_t *f_node;
1452 smb_node_t *dh_nvfile;
1546 smb_node_t *fq_dnode;
1547 smb_node_t *fq_fnode;
1560 smb_node_t *qi_node; /* NULL for pipes */
[all …]
/illumos-gate/usr/src/cmd/smbsrv/dtrace/
H A Dsmbnode.d40 /((smb_node_t *)arg0)->n_state == SMB_NODE_STATE_AVAILABLE/
44 printf("\n\tRefCnt: %d", ((smb_node_t *)arg0)->n_refcnt);
45 printf("\n\tName: %s", (string)((vnode_t *)((smb_node_t *)arg0)->vp)->v_path);
50 /((smb_node_t *)arg0)->n_state == SMB_NODE_STATE_DESTROYING/
54 printf("\n\tRefCnt: %d", ((smb_node_t *)arg0)->n_refcnt);
55 printf("\n\tName: %s", (string)((vnode_t *)((smb_node_t *)arg0)->vp)->v_path);
60 /(((smb_node_t *)arg0)->n_state != SMB_NODE_STATE_DESTROYING) &&
61 (((smb_node_t *)arg0)->n_state != SMB_NODE_STATE_AVAILABLE)/
65 printf("\n\tRefCnt: %d", ((smb_node_t *)arg0)->n_refcnt);
66 printf("\n\tName: %s", (string)((vnode_t *)((smb_node_t *)arg0)->vp)->v_path);
[all …]
/illumos-gate/usr/src/cmd/smbsrv/testoplock/smbsrv/
H A Dsmb_kproto.h48 boolean_t smb_node_is_file(smb_node_t *);
76 uint32_t smb_oplock_break_PARENT(smb_node_t *, smb_ofile_t *);
77 uint32_t smb_oplock_break_OPEN(smb_node_t *, smb_ofile_t *,
79 uint32_t smb_oplock_break_BATCH(smb_node_t *, smb_ofile_t *,
81 uint32_t smb_oplock_break_HANDLE(smb_node_t *, smb_ofile_t *);
82 void smb_oplock_break_CLOSE(smb_node_t *, smb_ofile_t *);
83 uint32_t smb_oplock_break_READ(smb_node_t *, smb_ofile_t *);
84 uint32_t smb_oplock_break_WRITE(smb_node_t *, smb_ofile_t *);
85 uint32_t smb_oplock_break_SETINFO(smb_node_t *,
87 uint32_t smb_oplock_break_DELETE(smb_node_t *, smb_ofile_t *);
[all …]
H A Dsmb_ktypes.h144 } smb_node_t; typedef
213 smb_node_t *f_node;
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_node.c111 static void smb_node_create_audit_buf(smb_node_t *, int);
112 static void smb_node_destroy_audit_buf(smb_node_t *);
113 static void smb_node_audit(smb_node_t *);
114 static smb_node_t *smb_node_alloc(char *, vnode_t *, smb_llist_t *, uint32_t);
115 static void smb_node_free(smb_node_t *);
120 static void smb_node_init_reparse(smb_node_t *, smb_attr_t *);
121 static void smb_node_init_system(smb_node_t *);
133 static smb_node_t *smb_root_node;
148 smb_node_t *node; in smb_node_init()
156 sizeof (smb_node_t), 8, smb_node_constructor, smb_node_destructor, in smb_node_init()
[all …]
H A Dsmb_fem.c100 static int smb_fem_oplock_wait(smb_node_t *, caller_context_t *);
163 smb_fem_fcn_install(smb_node_t *node) in smb_fem_fcn_install()
175 smb_fem_fcn_uninstall(smb_node_t *node) in smb_fem_fcn_uninstall()
186 smb_fem_oplock_install(smb_node_t *node) in smb_fem_oplock_install()
198 smb_fem_oplock_uninstall(smb_node_t *node) in smb_fem_oplock_uninstall()
246 smb_node_t *dnode; in smb_fem_fcn_create()
249 dnode = (smb_node_t *)arg->fa_fnode->fn_available; in smb_fem_fcn_create()
281 smb_node_t *dnode; in smb_fem_fcn_remove()
284 dnode = (smb_node_t *)arg->fa_fnode->fn_available; in smb_fem_fcn_remove()
306 smb_node_t *dnode; in smb_fem_fcn_rename()
[all …]
H A Dsmb_fsops.c40 smb_node_t *, char *, char *, int, smb_attr_t *, smb_node_t **);
42 static int smb_fsop_create_file(smb_request_t *, cred_t *, smb_node_t *,
43 char *, int, smb_attr_t *, smb_node_t **);
46 static int smb_fsop_create_with_sd(smb_request_t *, cred_t *, smb_node_t *,
47 char *, smb_attr_t *, smb_node_t **, smb_fssd_t *);
48 static int smb_fsop_sdinherit(smb_request_t *, smb_node_t *, smb_fssd_t *);
106 smb_fsop_open(smb_node_t *node, int mode, cred_t *cred) in smb_fsop_open()
117 smb_fsop_close(smb_node_t *node, int mode, cred_t *cred) in smb_fsop_close()
125 smb_node_t *dnode, char *name, in smb_fsop_create_with_sd()
126 smb_attr_t *attr, smb_node_t **ret_snode, smb_fssd_t *fs_sd) in smb_fsop_create_with_sd()
[all …]
H A Dsmb_vss.c65 static int smb_vss_lookup_node(smb_request_t *sr, smb_node_t *, vnode_t *,
66 char *, smb_node_t *, smb_node_t **);
140 smb_vss_lookup_nodes(smb_request_t *sr, smb_node_t *cur_node, in smb_vss_lookup_nodes()
141 smb_node_t **vss_cur_node, char *gmttoken) in smb_vss_lookup_nodes()
198 smb_vss_lookup_node(smb_request_t *sr, smb_node_t *node, vnode_t *fsrootvp, in smb_vss_lookup_node()
199 char *snapname, smb_node_t *dnode, smb_node_t **vss_node) in smb_vss_lookup_node()
H A Dsmb_cmn_rename.c38 static int smb_rename_check_attr(smb_request_t *, smb_node_t *, uint16_t);
59 smb_setinfo_rename(smb_request_t *sr, smb_node_t *node, char *path, int flags) in smb_setinfo_rename()
99 smb_node_t *src_fnode, *src_dnode, *dst_dnode; in smb_common_rename()
100 smb_node_t *dst_fnode = 0; in smb_common_rename()
101 smb_node_t *tnode; in smb_common_rename()
350 smb_node_t *src_fnode = src_fqi->fq_fnode; in smb_rename_check_stream()
394 smb_setinfo_link(smb_request_t *sr, smb_node_t *node, char *path, int flags) in smb_setinfo_link()
436 smb_node_t *tnode; in smb_make_link()
545 smb_node_t *tnode; in smb_rename_lookup_src()
596 smb_node_t *src_node = src_fqi->fq_fnode; in smb_rename_check_src()
[all …]
H A Dsmb_lock.c45 static void smb_lock_dumpnode(smb_node_t *);
48 static void smb_lock_posix_unlock(smb_node_t *, smb_lock_t *, cred_t *);
66 smb_lock_get_lock_count(smb_node_t *node, smb_ofile_t *of) in smb_lock_get_lock_count()
105 smb_node_t *node = file->f_node; in smb_unlock_range()
179 smb_node_t *node = file->f_node; in smb_lock_range()
355 smb_node_t *node, in smb_lock_range_access()
418 smb_node_destroy_lock_by_ofile(smb_node_t *node, smb_ofile_t *file) in smb_node_destroy_lock_by_ofile()
490 smb_node_t *node; in smb_lock_range_cancel()
573 smb_nbl_conflict(smb_node_t *node, uint64_t off, uint64_t len, nbl_op_t op) in smb_nbl_conflict()
613 smb_lock_posix_unlock(smb_node_t *node, smb_lock_t *lock, cred_t *cr) in smb_lock_posix_unlock()
[all …]
H A Dsmb_srv_oplock.c165 smb_node_t *node = ofile->f_node; in smb_oplock_ind_break_in_ack()
281 smb_node_t *node = ofile->f_node; in smb_oplock_ind_break()
547 smb_node_t *node = ofile->f_node; in smb_oplock_hdl_update()
591 smb_node_t *node = ofile->f_node; in smb_oplock_close()
623 smb_node_t *node = ofile->f_node; in smb_oplock_wait_ack_cancel()
647 smb_node_t *node = ofile->f_node; in smb_oplock_wait_ack()
786 smb_node_t *node = sr->cancel_arg2; in smb_oplock_wait_break_cancel()
813 smb_oplock_wait_break(smb_request_t *sr, smb_node_t *node, int timeout) in smb_oplock_wait_break()
901 smb_oplock_wait_break_fem(smb_node_t *node, int timeout) /* mSec. */ in smb_oplock_wait_break_fem()
H A Dsmb_cmn_oplock.c55 static uint32_t smb_oplock_break_cmn(smb_node_t *node,
172 RecomputeOplockState(smb_node_t *node) in RecomputeOplockState()
317 smb_node_t *node = ofile->f_node; in smb_oplock_request()
334 smb_node_t *node = ofile->f_node; in smb_oplock_request_LH()
558 smb_node_t *node = ofile->f_node; in smb_oplock_req_excl()
1064 smb_node_t *node = ofile->f_node; in smb_oplock_req_shared()
1493 smb_node_t *node = ofile->f_node; in smb_oplock_ack_break()
2243 smb_oplock_break_PARENT(smb_node_t *node, smb_ofile_t *ofile) in smb_oplock_break_PARENT()
2278 smb_oplock_break_BATCH(smb_node_t *node, smb_ofile_t *ofile, in smb_oplock_break_BATCH()
2297 smb_oplock_break_OPEN(smb_node_t *node, smb_ofile_t *ofile, in smb_oplock_break_OPEN()
[all …]
H A Dsmb_pathname.c151 smb_node_t *share_root_node, in smb_pathname_reduce()
152 smb_node_t *cur_node, in smb_pathname_reduce()
153 smb_node_t **dir_node, in smb_pathname_reduce()
156 smb_node_t *root_node; in smb_pathname_reduce()
164 smb_node_t *vss_node; in smb_pathname_reduce()
165 smb_node_t *local_cur_node; in smb_pathname_reduce()
166 smb_node_t *local_root_node; in smb_pathname_reduce()
432 smb_node_t *root_node, smb_node_t *cur_node, smb_node_t **dir_node, in smb_pathname()
433 smb_node_t **ret_node, cred_t *cred, pathname_t *mnt_pn) in smb_pathname()
437 smb_node_t *dnode, *fnode, *mnt_node; in smb_pathname()
H A Dsmb_cmn_setfile.c57 smb_node_t *node = si->si_node; in smb_set_basic_info()
132 smb_node_t *node = si->si_node; in smb_set_eof_info()
174 smb_node_t *node = si->si_node; in smb_set_alloc_info()
247 smb_node_t *node = si->si_node; in smb_set_disposition_info()
H A Dsmb_query_fileinfo.c84 static int smb_query_fileinfo(smb_request_t *, smb_node_t *,
92 static int smb_query_pathname(smb_request_t *, smb_node_t *, boolean_t,
222 smb_node_t *node; in smb_query_by_fid()
288 smb_node_t *node, *dnode; in smb_query_by_path()
627 smb_node_t *fnode = qinfo->qi_node; in smb_query_stream_info()
761 smb_query_fileinfo(smb_request_t *sr, smb_node_t *node, uint16_t infolev, in smb_query_fileinfo()
849 smb_query_pathname(smb_request_t *sr, smb_node_t *node, boolean_t include_share, in smb_query_pathname()
893 smb_query_shortname(smb_node_t *node, smb_queryinfo_t *qinfo) in smb_query_shortname()
H A Dsmb2_durable.c90 static smb_ofile_t *smb2_dh_import_handle(smb_request_t *, smb_node_t *,
92 static int smb2_dh_read_nvlist(smb_request_t *, smb_node_t *,
349 smb_node_t *snode; in smb2_dh_import_share()
354 smb_node_t *str_node; in smb2_dh_import_share()
494 smb2_dh_import_handle(smb_request_t *sr, smb_node_t *str_node, in smb2_dh_import_handle()
870 smb2_dh_read_nvlist(smb_request_t *sr, smb_node_t *node, in smb2_dh_read_nvlist()
991 smb_node_t *strnode; in smb2_dh_setdoc_persistent()
1019 smb_node_t *strnode; in smb2_dh_close_persistent()
1051 smb_node_t *dnode = of->f_tree->t_snode; in smb2_dh_make_persistent()
1052 smb_node_t *fnode = NULL; in smb2_dh_make_persistent()
[all …]
H A Dsmb2_lease.c276 smb_node_t *node = lease->ls_node; in lease_find_oplock()
314 smb_node_t *node; in smb2_lease_break_ack()
520 smb_node_t *node = ofile->f_node; in lease_send_any_cn()
580 smb_node_t *node = ofile->f_node; in lease_close_notconn()
643 smb_node_t *node = ofile->f_node; in smb2_lease_send_break()
772 smb_node_t *node = ofile->f_node; in smb2_lease_acquire()
1026 smb_node_t *node = ofile->f_node; in smb2_lease_ofile_close()
H A Dsmb_odir.c258 static smb_odir_t *smb_odir_create(smb_request_t *, smb_node_t *,
266 char *, smb_node_t **);
285 smb_node_t *dnode; in smb_odir_openpath()
369 smb_odir_openat(smb_request_t *sr, smb_node_t *unode, smb_odir_t **odp, in smb_odir_openat()
375 smb_node_t *xattr_dnode; in smb_odir_openat()
695 smb_node_t *fnode; in smb_odir_read_streaminfo()
919 smb_odir_create(smb_request_t *sr, smb_node_t *dnode, in smb_odir_create()
1199 smb_node_t *fnode, *tgt_node; in smb_odir_single_fileinfo()
1378 smb_node_t *tnode = NULL; in smb_odir_wildcard_fileinfo()
1499 char *fname, smb_node_t **tgt_node) in smb_odir_lookup_link()
H A Dsmb_directory.c115 smb_node_t *tnode; in smb_common_create_directory()
225 smb_node_t *tnode; in smb_com_delete_directory()
374 smb_node_t *tnode; in smb_com_check_directory()
375 smb_node_t *node; in smb_com_check_directory()
H A Dsmb_common_open.c252 smb_node_t *fnode = NULL; in smb_common_open()
253 smb_node_t *dnode = NULL; in smb_common_open()
254 smb_node_t *cur_node = NULL; in smb_common_open()
255 smb_node_t *tmp_node = NULL; in smb_common_open()
625 smb_node_t *tmp_node = fnode; in smb_common_open()
837 DTRACE_PROBE1(node_deleted, smb_node_t *, fnode); in smb_common_open()
1247 smb_node_t *node = of->f_node; in smb_set_open_attributes()
H A Dsmb_tree.c191 static int smb_tree_getattr(const smb_kshare_t *, smb_node_t *, smb_tree_t *);
192 static void smb_tree_get_creation(smb_node_t *, smb_tree_t *);
671 smb_node_t *snode = NULL; in smb_tree_connect_disk()
798 smb_node_t *dnode = NULL; in smb_tree_connect_printq()
799 smb_node_t *snode = NULL; in smb_tree_connect_printq()
908 smb_node_t *snode, uint32_t access, uint32_t execflags) in smb_tree_alloc()
1107 smb_tree_getattr(const smb_kshare_t *si, smb_node_t *node, smb_tree_t *tree) in smb_tree_getattr()
1145 smb_tree_get_creation(smb_node_t *node, smb_tree_t *tree) in smb_tree_get_creation()
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfksmb_fem.c41 smb_fem_fcn_install(smb_node_t *node) in smb_fem_fcn_install()
48 smb_fem_fcn_uninstall(smb_node_t *node) in smb_fem_fcn_uninstall()
55 smb_fem_oplock_install(smb_node_t *node) in smb_fem_oplock_install()
62 smb_fem_oplock_uninstall(smb_node_t *node) in smb_fem_oplock_uninstall()
/illumos-gate/usr/src/cmd/smbsrv/testoplock/
H A Dtol_main.c47 smb_node_t root_node, test_node;
122 smb_node_t *node = &test_node; in do_show()
165 smb_node_t *node = &test_node; in do_open()
190 smb_node_t *node = &test_node; in do_close()
248 smb_node_t *node = &test_node; in do_ack()
365 smb_node_t *node = &test_node; in do_move()
396 smb_node_t *node = &test_node; in do_waiters()
412 smb_node_t *node = &test_node; in main()
552 smb_node_is_file(smb_node_t *node) in smb_node_is_file()
566 smb_node_t *node, in smb_lock_range_access()
[all …]

12