Lines Matching defs:dn
793 dfs_nscnode_t dn;
795 (void) snprintf(dn.nsc_uncpath, sizeof (dn.nsc_uncpath),
799 (void) strsubst(dn.nsc_uncpath, '/', '\\');
801 smb_cache_remove(&dfs_nscache, &dn);
808 dfs_cache_getinfo(dfs_nscnode_t *dn, dfs_info_t *info, uint32_t infolvl)
812 if (dn->nsc_type == DFS_OBJECT_LINK)
813 status = dfs_link_getinfo(dn->nsc_fspath, info, infolvl);
815 status = dfs_root_getinfo(dn->nsc_fspath, info, infolvl);
817 (void) strlcpy(info->i_uncpath, dn->nsc_uncpath,
843 dfs_cache_iterate(smb_cache_cursor_t *cursor, dfs_nscnode_t *dn)
845 return (smb_cache_iterate(&dfs_nscache, cursor, dn));
1669 dfs_nscnode_t *dn;
1672 if ((dn = malloc(sizeof (dfs_nscnode_t))) == NULL)
1675 (void) strlcpy(dn->nsc_uncpath, uncpath, sizeof (dn->nsc_uncpath));
1676 (void) strlcpy(dn->nsc_fspath, fspath, sizeof (dn->nsc_fspath));
1677 dn->nsc_type = type;
1678 if (smb_cache_add(&dfs_nscache, dn, SMB_CACHE_ADD) != 0) {
1679 free(dn);