Lines Matching defs:majdev
23 int majdev, int mindev, char *path);
159 int majdev, mindev;
164 majdev = major(st.st_rdev);
167 majdev = major(st.st_rdev);
169 if (fio_lookup_raw(st.st_rdev, &majdev, &mindev))
174 majdev = major(st.st_dev);
188 majdev = major(st.st_dev);
193 *maj = majdev;
228 int majdev, mindev;
255 if (read_block_dev_entry(temppath, &majdev, &mindev)) {
264 slavedu = disk_util_exists(majdev, mindev);
269 __init_per_file_disk_util(td, majdev, mindev, temppath);
270 slavedu = disk_util_exists(majdev, mindev);
283 static struct disk_util *disk_util_add(struct thread_data *td, int majdev,
290 dprint(FD_DISKUTIL, "add maj/min %d/%d: %s\n", majdev, mindev, path);
309 du->major = majdev;
342 static int check_dev_match(int majdev, int mindev, char *path)
349 if (majdev == major && mindev == minor)
355 static int find_block_dir(int majdev, int mindev, char *path, int link_ok)
375 if (!check_dev_match(majdev, mindev, full_path)) {
396 found = find_block_dir(majdev, mindev, full_path, 0);
408 int majdev, int mindev,
435 return disk_util_add(td, majdev, mindev, path);
444 int mindev, majdev;
446 if (get_device_numbers(filename, &majdev, &mindev))
449 dprint(FD_DISKUTIL, "%s belongs to maj/min %d/%d\n", filename, majdev,
452 du = disk_util_exists(majdev, mindev);
466 if (mindev == last_mindev && majdev == last_majdev)
470 last_majdev = majdev;
473 if (!find_block_dir(majdev, mindev, foo, 1))
476 return __init_per_file_disk_util(td, majdev, mindev, foo);