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

Function ztest_log_remove

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

Source from the content-addressed store, hash-verified

1757}
1758
1759static void
1760ztest_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
1777static void
1778ztest_log_write(ztest_ds_t *zd, dmu_tx_t *tx, lr_write_t *lr)

Callers 1

ztest_replay_removeFunction · 0.85

Calls 3

zil_replayingFunction · 0.85
zil_itx_createFunction · 0.85
zil_itx_assignFunction · 0.85

Tested by

no test coverage detected