Lines Matching refs:majdev
22 int majdev, int mindev, char *path);
159 int majdev, mindev; in get_device_numbers() local
164 majdev = major(st.st_rdev); in get_device_numbers()
167 majdev = major(st.st_rdev); in get_device_numbers()
169 if (fio_lookup_raw(st.st_rdev, &majdev, &mindev)) in get_device_numbers()
174 majdev = major(st.st_dev); in get_device_numbers()
189 majdev = major(st.st_dev); in get_device_numbers()
194 *maj = majdev; in get_device_numbers()
229 int majdev, mindev; in find_add_disk_slaves() local
256 if (read_block_dev_entry(temppath, &majdev, &mindev)) { in find_add_disk_slaves()
265 slavedu = disk_util_exists(majdev, mindev); in find_add_disk_slaves()
270 __init_per_file_disk_util(td, majdev, mindev, temppath); in find_add_disk_slaves()
271 slavedu = disk_util_exists(majdev, mindev); in find_add_disk_slaves()
284 static struct disk_util *disk_util_add(struct thread_data *td, int majdev, in disk_util_add() argument
291 dprint(FD_DISKUTIL, "add maj/min %d/%d: %s\n", majdev, mindev, path); in disk_util_add()
308 du->major = majdev; in disk_util_add()
341 static int check_dev_match(int majdev, int mindev, char *path) in check_dev_match() argument
348 if (majdev == major && mindev == minor) in check_dev_match()
354 static int find_block_dir(int majdev, int mindev, char *path, int link_ok) in find_block_dir() argument
374 if (!check_dev_match(majdev, mindev, full_path)) { in find_block_dir()
395 found = find_block_dir(majdev, mindev, full_path, 0); in find_block_dir()
407 int majdev, int mindev, in __init_per_file_disk_util() argument
432 return disk_util_add(td, majdev, mindev, path); in __init_per_file_disk_util()
441 int mindev, majdev; in init_per_file_disk_util() local
443 if (get_device_numbers(filename, &majdev, &mindev)) in init_per_file_disk_util()
446 dprint(FD_DISKUTIL, "%s belongs to maj/min %d/%d\n", filename, majdev, in init_per_file_disk_util()
449 du = disk_util_exists(majdev, mindev); in init_per_file_disk_util()
459 if (mindev == last_mindev && majdev == last_majdev) in init_per_file_disk_util()
463 last_majdev = majdev; in init_per_file_disk_util()
466 if (!find_block_dir(majdev, mindev, foo, 1)) in init_per_file_disk_util()
469 return __init_per_file_disk_util(td, majdev, mindev, foo); in init_per_file_disk_util()