Lines Matching refs:device
2 * finddev.c -- this routine attempts to find a particular device in
78 static int scan_dir(char *dirname, dev_t device, struct dir_list **list,
103 if (S_ISBLK(st.st_mode) && st.st_rdev == device) {
122 * This function finds the pathname to a block device with a given
123 * device number. It returns a pointer to allocated memory to the
126 char *ext2fs_find_block_device(dev_t device)
146 scan_dir(current->name, device, &new_list, &ret_path);
174 dev_t device;
183 device = strtoul(argv[1], &tmp, 0);
185 fprintf(stderr, errmsg, "device number", argv[1]);
199 device = makedev(major, minor);
200 printf("Looking for device 0x%04x (%d:%d)\n", device,
203 devname = ext2fs_find_block_device(device);
205 printf("Found device! %s\n", devname);
208 printf("Couldn't find device.\n");