| 1757 | } |
| 1758 | |
| 1759 | static void |
| 1760 | ztest_log_remove(ztest_ds_t *zd, dmu_tx_t *tx, lr_remove_t *lr, uint64_t object) |
| 1761 | { |
| 1762 | char *name = (void *)(lr + 1); /* name follows lr */ |
| 1763 | size_t namesize = strlen(name) + 1; |
| 1764 | itx_t *itx; |
| 1765 | |
| 1766 | if (zil_replaying(zd->zd_zilog, tx)) |
| 1767 | return; |
| 1768 | |
| 1769 | itx = zil_itx_create(TX_REMOVE, sizeof (*lr) + namesize); |
| 1770 | bcopy(&lr->lr_common + 1, &itx->itx_lr + 1, |
| 1771 | sizeof (*lr) + namesize - sizeof (lr_t)); |
| 1772 | |
| 1773 | itx->itx_oid = object; |
| 1774 | zil_itx_assign(zd->zd_zilog, itx, tx); |
| 1775 | } |
| 1776 | |
| 1777 | static void |
| 1778 | ztest_log_write(ztest_ds_t *zd, dmu_tx_t *tx, lr_write_t *lr) |
no test coverage detected