Lines Matching full:device
2 * finddev.c -- this routine attempts to find a particular device in
77 static int scan_dir(char *dirname, dev_t device, struct dir_list **list,
102 if (S_ISBLK(st.st_mode) && st.st_rdev == device) {
121 * This function finds the pathname to a block device with a given
122 * device number. It returns a pointer to allocated memory to the
125 char *ext2fs_find_block_device(dev_t device)
144 scan_dir(current->name, device, &new_list, &ret_path);
169 dev_t device;
178 device = strtoul(argv[1], &tmp, 0);
180 fprintf(stderr, errmsg, "device number", argv[1]);
194 device = makedev(major, minor);
195 printf("Looking for device 0x%04x (%d:%d)\n", device,
198 devname = ext2fs_find_block_device(device);
200 printf("Found device! %s\n", devname);
203 printf("Couldn't find device.\n");