Lines Matching refs:rootdir
541 char rootdir[DFS_PATH_MAX];
544 if (dfs_ns_path(name, rootdir, DFS_PATH_MAX, ns_type) != ERROR_SUCCESS)
548 if (dfs_root_getinfo(rootdir, &info, 2, ns_type) != ERROR_SUCCESS)
762 dfs_root_getinfo(const char *rootdir, dfs_info_t *info, uint32_t infolvl,
775 if ((xfd = dfs_root_xopen(rootdir, O_RDONLY)) > 0) {
792 * Root is specified by 'rootdir' and the target is specified by
798 dfs_root_setinfo(const char *rootdir, dfs_info_t *info, uint32_t infolvl,
806 if ((xfd = dfs_root_xopen(rootdir, O_RDWR)) < 0) {
1172 char rootdir[DFS_PATH_MAX];
1190 if (dfs_ns_path(unc->unc_share, rootdir, DFS_PATH_MAX, ns_type)
1208 "%s/%s", rootdir, unc->unc_path);
1213 (void) strlcpy(path->p_fspath, rootdir,
1353 dfs_root_add(const char *rootdir, dfs_info_t *info)
1359 if ((xfd = dfs_root_xopen(rootdir, O_CREAT | O_TRUNC | O_RDWR)) > 0) {
1372 dfs_root_remove(const char *rootdir)
1379 if ((attrdirfd = attropen(rootdir, ".", O_RDONLY)) > 0) {
1393 rootdir, err);
1404 dfs_root_xopen(const char *rootdir, int oflag)
1410 if ((dfd = open(rootdir, O_RDONLY)) > 0) {
1421 rootdir, err);
1943 char rootdir[DFS_PATH_MAX];
1949 status = dfs_ns_path(unc->unc_share, rootdir, DFS_PATH_MAX, ns_type);
1950 if ((status == ERROR_SUCCESS) && (chdir(rootdir) == 0)) {