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

Function ztest_log_create

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

Source from the content-addressed store, hash-verified

1740#define lrz_dnodesize lr_crtime[1]
1741
1742static void
1743ztest_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
1759static void
1760ztest_log_remove(ztest_ds_t *zd, dmu_tx_t *tx, lr_remove_t *lr, uint64_t object)

Callers 1

ztest_replay_createFunction · 0.85

Calls 3

zil_replayingFunction · 0.85
zil_itx_createFunction · 0.85
zil_itx_assignFunction · 0.85

Tested by

no test coverage detected