Lines Matching defs:si
246 smb_share_t si;
263 if (smb_share_lookup(share, &si) != NERR_Success) {
269 if ((si.shr_flags & SMB_SHRF_DFSROOT) == 0) {
271 smb_share_free(&si);
276 if (dfs_root_getinfo(si.shr_path, &info,
279 smb_share_free(&si);
285 (void) strlcpy(dfsns.ns_path, si.shr_path, sizeof (dfsns.ns_path));
287 dfs_ns_load(share, si.shr_path);
292 smb_share_free(&si);
389 smb_share_t si;
435 if (smb_share_lookup(rootshr, &si) != NERR_Success) {
456 if ((status = dfs_root_add(si.shr_path, &info)) != ERROR_SUCCESS) {
458 smb_share_free(&si);
462 status = srvsvc_shr_setdfsroot(&si, B_TRUE);
465 (void) strlcpy(dfsns.ns_path, si.shr_path,
468 dfs_ns_load(rootshr, si.shr_path);
473 smb_share_free(&si);
483 smb_share_t si;
487 if (smb_share_lookup(name, &si) != NERR_Success)
490 if ((si.shr_flags & SMB_SHRF_DFSROOT) == 0) {
491 smb_share_free(&si);
495 if (dfs_root_getinfo(si.shr_path, &info,
497 smb_share_free(&si);
503 smb_share_free(&si);
509 status = srvsvc_shr_setdfsroot(&si, B_FALSE);
513 smb_share_free(&si);
517 if ((status = dfs_root_remove(si.shr_path)) != ERROR_SUCCESS) {
518 smb_share_free(&si);
528 dfs_ns_cleanup(si.shr_path, ns_type);
530 smb_share_free(&si);