Lines Matching refs:dev_dir
313 char dev_dir[PATH_MAX], path[PATH_MAX], db_dir[PATH_MAX]; in handle_alloc() local
322 dev_dir[0] = '\0'; in handle_alloc()
337 assert(sizeof (dev_dir) >= PATH_MAX); in handle_alloc()
339 if ((realpath(root_dir, dev_dir) == NULL) || in handle_alloc()
350 if (strcmp(dev_dir, "/") == 0) { in handle_alloc()
351 dev_dir[0] = 0; in handle_alloc()
354 (void) strlcpy(db_dir, dev_dir, sizeof (db_dir)); in handle_alloc()
357 (void) strlcat(dev_dir, DEV, sizeof (dev_dir)); in handle_alloc()
407 proto.dev_dir = dev_dir; in handle_alloc()
439 if ((hdp->dev_dir = strdup(proto.dev_dir)) == NULL) { in handle_alloc()
445 free(hdp->dev_dir); in handle_alloc()
1094 free(hdp->dev_dir); in handle_free()
1242 (void) snprintf(link, sizeof (link), "%s/%s", hdp->dev_dir, clp->path); in link2minor()
2217 assert(strncmp(link, hdp->dev_dir, strlen(hdp->dev_dir)) == 0); in cache_dev_link()
2222 link += strlen(hdp->dev_dir) + 1; in cache_dev_link()
2338 hdp->dev_dir, vlp->rel_path); in visit_link()
2501 const size_t len = strlen(hdp->dev_dir); in rel_path()
2503 if (strncmp(path, hdp->dev_dir, len) != 0) in rel_path()
2520 (void) do_recurse(hdp->dev_dir, hdp, rp, &ret); in recurse_dev()