MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ztest_log_setattr

Function ztest_log_setattr

freebsd/contrib/openzfs/cmd/ztest/ztest.c:1825–1839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1823}
1824
1825static void
1826ztest_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

Callers 1

ztest_replay_setattrFunction · 0.85

Calls 3

zil_replayingFunction · 0.85
zil_itx_createFunction · 0.85
zil_itx_assignFunction · 0.85

Tested by

no test coverage detected