| 1740 | #define lrz_dnodesize lr_crtime[1] |
| 1741 | |
| 1742 | static void |
| 1743 | ztest_log_create(ztest_ds_t *zd, dmu_tx_t *tx, lr_create_t *lr) |
| 1744 | { |
| 1745 | char *name = (void *)(lr + 1); /* name follows lr */ |
| 1746 | size_t namesize = strlen(name) + 1; |
| 1747 | itx_t *itx; |
| 1748 | |
| 1749 | if (zil_replaying(zd->zd_zilog, tx)) |
| 1750 | return; |
| 1751 | |
| 1752 | itx = zil_itx_create(TX_CREATE, sizeof (*lr) + namesize); |
| 1753 | bcopy(&lr->lr_common + 1, &itx->itx_lr + 1, |
| 1754 | sizeof (*lr) + namesize - sizeof (lr_t)); |
| 1755 | |
| 1756 | zil_itx_assign(zd->zd_zilog, itx, tx); |
| 1757 | } |
| 1758 | |
| 1759 | static void |
| 1760 | ztest_log_remove(ztest_ds_t *zd, dmu_tx_t *tx, lr_remove_t *lr, uint64_t object) |
no test coverage detected