X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=cmd%2Fztest%2Fztest.c;h=0a7ca1c164aa82b8368a7a20ea0cda68befb89cb;hb=383fc4a9970ede483dc4bd7579f1c62942d1312f;hp=3b26f8d1eb75ab5745fb1ad523e89b5ff03c3085;hpb=9554185d90a9f833c023c1bb8bc35779b8fd1b10;p=mirror_zfs.git diff --git a/cmd/ztest/ztest.c b/cmd/ztest/ztest.c index 3b26f8d1e..0a7ca1c16 100644 --- a/cmd/ztest/ztest.c +++ b/cmd/ztest/ztest.c @@ -3715,6 +3715,9 @@ ztest_dmu_read_write(ztest_ds_t *zd, uint64_t id) else dmu_tx_hold_write(tx, bigobj, bigoff, bigsize); + /* This accounts for setting the checksum/compression. */ + dmu_tx_hold_bonus(tx, bigobj); + txg = ztest_tx_assign(tx, TXG_MIGHTWAIT, FTAG); if (txg == 0) { umem_free(packbuf, packsize);