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

Function ztest_bt_verify

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

Source from the content-addressed store, hash-verified

1655}
1656
1657static void
1658ztest_bt_verify(ztest_block_tag_t *bt, objset_t *os, uint64_t object,
1659 uint64_t dnodesize, uint64_t offset, uint64_t gen, uint64_t txg,
1660 uint64_t crtxg)
1661{
1662 ASSERT3U(bt->bt_magic, ==, BT_MAGIC);
1663 ASSERT3U(bt->bt_objset, ==, dmu_objset_id(os));
1664 ASSERT3U(bt->bt_object, ==, object);
1665 ASSERT3U(bt->bt_dnodesize, ==, dnodesize);
1666 ASSERT3U(bt->bt_offset, ==, offset);
1667 ASSERT3U(bt->bt_gen, <=, gen);
1668 ASSERT3U(bt->bt_txg, <=, txg);
1669 ASSERT3U(bt->bt_crtxg, ==, crtxg);
1670}
1671
1672static ztest_block_tag_t *
1673ztest_bt_bonus(dmu_buf_t *db)

Callers 3

ztest_replay_writeFunction · 0.85
ztest_replay_setattrFunction · 0.85
ztest_verify_dnode_btFunction · 0.85

Calls 1

dmu_objset_idFunction · 0.85

Tested by

no test coverage detected