Lines Matching +defs:device +defs:mode

139 	mode_t mode;
144 mode = (mode_t)va_arg(ap, int);
147 mode = 0;
149 fd = openat(dirfd, path, flags, mode);
163 const char *device, int bounds, const int status)
173 xo_emit_h(xo, "{Lwc:Dump header from device}{:dump_device/%s}\n",
174 device);
312 int savedirfd, const char *infoname, const char *device, int bounds,
336 printheader(xostdout, kdh, device, bounds, status);
338 printheader(xoinfo, kdh, device, bounds, status);
476 "no dump: not enough free space on device (need at least "
616 uint8_t compression, char *buf, const char *device,
657 "WARNING: EOF on dump device");
659 logmsg(LOG_ERR, "read error on %s: %m", device);
703 const char *device, const char *filename, FILE *fp)
713 device);
722 "WARNING: EOF on dump device");
724 logmsg(LOG_ERR, "read error on %s: %m", device);
748 DoLiveFile(const char *savedir, int savedirfd, const char *device)
785 fddev = fileargs_open(capfa, device);
787 logmsg(LOG_ERR, "%s: %m", device);
823 version, device);
839 "parity error on last dump header on %s", device);
865 printheader(xostdout, &kdhl, device, bounds, -1);
886 if (write_header_info(xostdout, &kdhl, savedirfd, infoname, device,
925 DoFile(const char *savedir, int savedirfd, const char *device)
943 DoLiveFile(savedir, savedirfd, device);
967 printf("checking for kernel dump on device %s\n", device);
969 fddev = fileargs_open(capfa, device);
971 logmsg(LOG_ERR, "%s: %m", device);
980 "couldn't find media and/or sector size of %s: %m", device);
1006 (long long)lasthd, device);
1014 device);
1019 dtoh32(kdhl.version), device);
1029 dtoh32(kdhl.version), device);
1050 kdhl.compression, device);
1056 device);
1064 printf("forcing magic on %s\n", device);
1073 dtoh32(kdhl.version), device);
1087 "parity error on last dump header on %s", device);
1101 (long long)firsthd, device);
1109 printheader(xostdout, &kdhf, device, bounds, -1);
1112 printheader(xostdout, &kdhl, device, bounds, -1);
1118 "first and last dump headers disagree on %s", device);
1128 printf("A dump exists on %s\n", device);
1184 if (write_header_info(xostdout, &kdhl, savedirfd, infoname, device,
1218 if (DoTextdumpFile(fddev, dumplength, lasthd, buf, device,
1225 buf, device, corename, core) < 0) {
1327 logmsg(LOG_ERR, "device name too long");
1344 * We cannot use getfsent(3) in capability mode, so we must
1422 "usage: savecore -c [-v] [device ...]",
1423 " savecore -C [-v] [device ...]",
1425 " savecore [-fkuvz] [-m maxdumps] [directory [device ...]]");
1546 /* Enter capability mode. */