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

Function ztest_bt_generate

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

Source from the content-addressed store, hash-verified

1640}
1641
1642static void
1643ztest_bt_generate(ztest_block_tag_t *bt, objset_t *os, uint64_t object,
1644 uint64_t dnodesize, uint64_t offset, uint64_t gen, uint64_t txg,
1645 uint64_t crtxg)
1646{
1647 bt->bt_magic = BT_MAGIC;
1648 bt->bt_objset = dmu_objset_id(os);
1649 bt->bt_object = object;
1650 bt->bt_dnodesize = dnodesize;
1651 bt->bt_offset = offset;
1652 bt->bt_gen = gen;
1653 bt->bt_txg = txg;
1654 bt->bt_crtxg = crtxg;
1655}
1656
1657static void
1658ztest_bt_verify(ztest_block_tag_t *bt, objset_t *os, uint64_t object,

Callers 4

ztest_replay_createFunction · 0.85
ztest_replay_writeFunction · 0.85
ztest_replay_setattrFunction · 0.85
ztest_ioFunction · 0.85

Calls 1

dmu_objset_idFunction · 0.85

Tested by

no test coverage detected