| 1618 | } |
| 1619 | |
| 1620 | static int |
| 1621 | _dump_append(struct dumperinfo *di, void *virtual, vm_offset_t physical, |
| 1622 | size_t length) |
| 1623 | { |
| 1624 | int error; |
| 1625 | |
| 1626 | #ifdef EKCD |
| 1627 | if (di->kdcrypto != NULL) |
| 1628 | error = dump_encrypted_write(di, virtual, physical, di->dumpoff, |
| 1629 | length); |
| 1630 | else |
| 1631 | #endif |
| 1632 | error = dump_write(di, virtual, physical, di->dumpoff, length); |
| 1633 | if (error == 0) |
| 1634 | di->dumpoff += length; |
| 1635 | return (error); |
| 1636 | } |
| 1637 | |
| 1638 | /* |
| 1639 | * Write to the dump device starting at dumpoff. When compression is enabled, |
no test coverage detected