Lines Matching refs:device
28 * performs a verification pass over a device specified on command line;
48 static void scandisk(char *device, int devfd, int writeflag);
58 static struct dk_geom dkg; /* physical device boot info */
71 int devfd; /* device file descriptor */
77 char *device;
115 device = argv[optind];
117 if (stat(device, &statbuf)) {
119 "%s: invalid device %s, stat failed\n", progname, device);
125 "%s: device %s is not character special\n",
126 progname, device);
129 if ((devfd = open(device, O_RDWR)) == -1) {
131 "%s: open of %s failed\n", progname, device);
158 scandisk(device, devfd, do_scan);
169 scandisk(char *device, int devfd, int writeflag)
241 "\nCAUTION: ABOUT TO DO DESTRUCTIVE WRITE ON %s\n", device);