Lines Matching refs:dev_dir
314 char dev_dir[PATH_MAX], path[PATH_MAX], db_dir[PATH_MAX]; in handle_alloc() local
323 dev_dir[0] = '\0'; in handle_alloc()
338 assert(sizeof (dev_dir) >= PATH_MAX); in handle_alloc()
340 if ((realpath(root_dir, dev_dir) == NULL) || in handle_alloc()
351 if (strcmp(dev_dir, "/") == 0) { in handle_alloc()
352 dev_dir[0] = 0; in handle_alloc()
355 (void) strlcpy(db_dir, dev_dir, sizeof (db_dir)); in handle_alloc()
358 (void) strlcat(dev_dir, DEV, sizeof (dev_dir)); in handle_alloc()
408 proto.dev_dir = dev_dir; in handle_alloc()
440 if ((hdp->dev_dir = strdup(proto.dev_dir)) == NULL) { in handle_alloc()
446 free(hdp->dev_dir); in handle_alloc()
1095 free(hdp->dev_dir); in handle_free()
1243 (void) snprintf(link, sizeof (link), "%s/%s", hdp->dev_dir, clp->path); in link2minor()
2218 assert(strncmp(link, hdp->dev_dir, strlen(hdp->dev_dir)) == 0); in cache_dev_link()
2223 link += strlen(hdp->dev_dir) + 1; in cache_dev_link()
2339 hdp->dev_dir, vlp->rel_path); in visit_link()
2502 const size_t len = strlen(hdp->dev_dir); in rel_path()
2504 if (strncmp(path, hdp->dev_dir, len) != 0) in rel_path()
2521 (void) do_recurse(hdp->dev_dir, hdp, rp, &ret); in recurse_dev()