Lines Matching full:bounds

160     const char *device, int bounds, const int status)  in printheader()  argument
209 xo_emit_h(xo, "{P: }{Lwc:Bounds}{:bounds/%d}\n", bounds); in printheader()
235 * directory and we should not try to read a bounds file. in getbounds()
242 if ((fp = xfopenat(savedirfd, "bounds", O_RDONLY, "r")) == NULL) { in getbounds()
244 printf("unable to open bounds file, using 0\n"); in getbounds()
249 logmsg(LOG_WARNING, "bounds file is empty, using 0"); in getbounds()
251 logmsg(LOG_WARNING, "bounds file: %s", strerror(errno)); in getbounds()
259 logmsg(LOG_WARNING, "invalid value found in bounds, using 0"); in getbounds()
267 writebounds(int savedirfd, int bounds) in writebounds() argument
271 if ((fp = xfopenat(savedirfd, "bounds", O_WRONLY | O_CREAT | O_TRUNC, in writebounds()
273 logmsg(LOG_WARNING, "unable to write to bounds file: %m"); in writebounds()
278 printf("bounds number: %d\n", bounds); in writebounds()
280 fprintf(fp, "%d\n", bounds); in writebounds()
309 int savedirfd, const char *infoname, const char *device, int bounds, in write_header_info() argument
333 printheader(xostdout, kdh, device, bounds, status); in write_header_info()
335 printheader(xoinfo, kdh, device, bounds, status); in write_header_info()
357 saved_dump_size(int savedirfd, int bounds) in saved_dump_size() argument
364 (void)snprintf(path, sizeof(path), "info.%d", bounds); in saved_dump_size()
366 (void)snprintf(path, sizeof(path), "vmcore.%d", bounds); in saved_dump_size()
368 (void)snprintf(path, sizeof(path), "vmcore.%d.gz", bounds); in saved_dump_size()
370 (void)snprintf(path, sizeof(path), "vmcore.%d.zst", bounds); in saved_dump_size()
372 (void)snprintf(path, sizeof(path), "textdump.tar.%d", bounds); in saved_dump_size()
374 (void)snprintf(path, sizeof(path), "textdump.tar.%d.gz", bounds); in saved_dump_size()
381 saved_dump_remove(int savedirfd, int bounds) in saved_dump_remove() argument
385 (void)snprintf(path, sizeof(path), "info.%d", bounds); in saved_dump_remove()
387 (void)snprintf(path, sizeof(path), "vmcore.%d", bounds); in saved_dump_remove()
389 (void)snprintf(path, sizeof(path), "vmcore.%d.gz", bounds); in saved_dump_remove()
391 (void)snprintf(path, sizeof(path), "vmcore.%d.zst", bounds); in saved_dump_remove()
393 (void)snprintf(path, sizeof(path), "textdump.tar.%d", bounds); in saved_dump_remove()
395 (void)snprintf(path, sizeof(path), "textdump.tar.%d.gz", bounds); in saved_dump_remove()
397 (void)snprintf(path, sizeof(path), "livecore.%d", bounds); in saved_dump_remove()
399 (void)snprintf(path, sizeof(path), "livecore.%d.gz", bounds); in saved_dump_remove()
401 (void)snprintf(path, sizeof(path), "livecore.%d.zst", bounds); in saved_dump_remove()
428 check_space(const char *savedir, int savedirfd, off_t dumpsize, int bounds) in check_space() argument
470 needed -= saved_dump_size(savedirfd, bounds); in check_space()
754 int bounds; in DoLiveFile() local
757 bounds = getbounds(savedirfd); in DoLiveFile()
862 printheader(xostdout, &kdhl, device, bounds, -1); in DoLiveFile()
867 writebounds(savedirfd, bounds + 1); in DoLiveFile()
868 saved_dump_remove(savedirfd, bounds); in DoLiveFile()
870 snprintf(corename, sizeof(corename), "livecore.%d", bounds); in DoLiveFile()
882 snprintf(infoname, sizeof(infoname), "info.%d", bounds); in DoLiveFile()
884 bounds, status) != 0) { in DoLiveFile()
933 int bounds, status; in DoFile() local
944 bounds = getbounds(savedirfd); in DoFile()
1106 printheader(xostdout, &kdhf, device, bounds, -1); in DoFile()
1109 printheader(xostdout, &kdhl, device, bounds, -1); in DoFile()
1139 if (!check_space(savedir, savedirfd, dumplength, bounds)) { in DoFile()
1144 writebounds(savedirfd, bounds + 1); in DoFile()
1146 saved_dump_remove(savedirfd, bounds); in DoFile()
1152 (isencrypted ? "vmcore_encrypted" : "vmcore"), bounds); in DoFile()
1154 snprintf(corename, sizeof(corename), "vmcore.%d.%s", bounds, in DoFile()
1159 (isencrypted ? "vmcore_encrypted" : "vmcore"), bounds); in DoFile()
1180 snprintf(infoname, sizeof(infoname), "info.%d", bounds); in DoFile()
1182 bounds, status) != 0) { in DoFile()
1201 snprintf(keyname, sizeof(keyname), "key.%d", bounds); in DoFile()