db_textdump.c (753c4e83fc761df9596fc66cfec6d7a6183ce7ba) db_textdump.c (78f57a9cdef729f94669fe1eb494666f403f9235)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2007 Robert N. M. Watson
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 440 unchanged lines hidden (view full) ---

449 printf("Insufficient space on dump partition for minimal textdump.\n");
450 return;
451 }
452 textdump_error = 0;
453
454 /*
455 * Disable EKCD because we don't provide encrypted textdumps.
456 */
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2007 Robert N. M. Watson
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 440 unchanged lines hidden (view full) ---

449 printf("Insufficient space on dump partition for minimal textdump.\n");
450 return;
451 }
452 textdump_error = 0;
453
454 /*
455 * Disable EKCD because we don't provide encrypted textdumps.
456 */
457 kdc = di->kdc;
458 di->kdc = NULL;
457 kdc = di->kdcrypto;
458 di->kdcrypto = NULL;
459
460 /*
461 * Position the start of the dump so that we'll write the kernel dump
462 * trailer immediately before the end of the partition, and then work
463 * our way back. We will rewrite this header later to reflect the
464 * true size if things go well.
465 */
466 textdump_offset = di->mediasize - sizeof(kdh);

--- 40 unchanged lines hidden (view full) ---

507 printf("Textdump: Error %d writing dump\n", textdump_error);
508 else
509 printf("Textdump complete.\n");
510 textdump_pending = 0;
511
512 /*
513 * Restore EKCD status.
514 */
459
460 /*
461 * Position the start of the dump so that we'll write the kernel dump
462 * trailer immediately before the end of the partition, and then work
463 * our way back. We will rewrite this header later to reflect the
464 * true size if things go well.
465 */
466 textdump_offset = di->mediasize - sizeof(kdh);

--- 40 unchanged lines hidden (view full) ---

507 printf("Textdump: Error %d writing dump\n", textdump_error);
508 else
509 printf("Textdump complete.\n");
510 textdump_pending = 0;
511
512 /*
513 * Restore EKCD status.
514 */
515 di->kdc = kdc;
515 di->kdcrypto = kdc;
516}
517
518/*-
519 * DDB(4) command to manage textdumps:
520 *
521 * textdump set - request a textdump
522 * textdump status - print DDB output textdump status
523 * textdump unset - clear textdump request

--- 40 unchanged lines hidden ---
516}
517
518/*-
519 * DDB(4) command to manage textdumps:
520 *
521 * textdump set - request a textdump
522 * textdump status - print DDB output textdump status
523 * textdump unset - clear textdump request

--- 40 unchanged lines hidden ---