| 1823 | } |
| 1824 | |
| 1825 | static void |
| 1826 | ztest_log_setattr(ztest_ds_t *zd, dmu_tx_t *tx, lr_setattr_t *lr) |
| 1827 | { |
| 1828 | itx_t *itx; |
| 1829 | |
| 1830 | if (zil_replaying(zd->zd_zilog, tx)) |
| 1831 | return; |
| 1832 | |
| 1833 | itx = zil_itx_create(TX_SETATTR, sizeof (*lr)); |
| 1834 | bcopy(&lr->lr_common + 1, &itx->itx_lr + 1, |
| 1835 | sizeof (*lr) - sizeof (lr_t)); |
| 1836 | |
| 1837 | itx->itx_sync = B_FALSE; |
| 1838 | zil_itx_assign(zd->zd_zilog, itx, tx); |
| 1839 | } |
| 1840 | |
| 1841 | /* |
| 1842 | * ZIL replay ops |
no test coverage detected