Lines Matching defs:path
61 char path[PATH_SIZE];
65 static int device_list_insert(const char *path, struct list_head *device_list)
69 const char *devpath = &path[strlen(sysfs_path)];
74 if (strcmp(loop_device->path, devpath) > 0) {
85 strlcpy(new_device->path, devpath, sizeof(new_device->path));
87 dbg("add '%s'" , new_device->path);
182 if (strncmp(loop_device->path, first_list[i], strlen(first_list[i])) == 0) {
183 add_device(loop_device->path);
195 if (strncmp(loop_device->path, last_list[i], strlen(last_list[i])) == 0) {
203 add_device(loop_device->path);
210 add_device(loop_device->path);
216 static int has_devt(const char *path)
221 snprintf(filename, sizeof(filename), "%s/dev", path);