Lines Matching refs:device
234 if (i->device)
235 free(i->device);
242 static struct fs_info *create_fs_device(const char *device, const char *mntpnt,
251 fs->device = string_copy(device);
273 char *dev, *device, *mntpnt, *type, *opts, *freq, *passno, *cp;
280 device = parse_word(&cp);
281 if (!device || *device == '#')
292 parse_escape(device);
299 dev = blkid_get_devname(cache, device, NULL);
301 device = dev;
306 fs = create_fs_device(device, mntpnt, type ? type : "auto", opts,
324 t = blkid_get_tag_value(cache, "TYPE", fs->device);
389 if (!strcmp(filesys, fs->device) ||
434 static int execute(const char *type, const char *device, const char *mntpt,
464 argv[argc++] = string_copy(device);
476 mntpt ? mntpt : device);
504 inst->device = string_copy(device);
505 inst->base_device = base_device(device);
607 printf(_("Warning... %s for device %s exited "
609 inst->prog, inst->device, sig);
614 inst->prog, inst->device, status);
650 inst->device, inst->exit_status);
681 * Run the fsck program on a particular device
707 retval = execute(type, fs->device, fs->mountpt, interactive);
710 "for %s\n"), progname, retval, type, fs->device);
900 fs->device, fs->type);
912 static int device_already_active(char *device)
923 (!strncmp(instance_list->device, BASE_MD, sizeof(BASE_MD)-1) ||
924 !strncmp(device, BASE_MD, sizeof(BASE_MD)-1)))
928 base = base_device(device);
930 * If we don't know the base device, assume that the device is
977 !(ignore_mounted && is_mounted(fs->device))) {
1013 if (ignore_mounted && is_mounted(fs->device)) {
1018 * If a filesystem on a particular device has
1022 if (device_already_active(fs->device)) {
1311 if (ignore_mounted && is_mounted(fs->device))