diff options
author | Serapheim Dimitropoulos <[email protected]> | 2019-08-15 07:44:57 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-08-15 08:44:57 -0600 |
commit | 0e37a0f4f3bc4feb62a966a7c0dd64544172395f (patch) | |
tree | 3a451478c51f6d9d5ca03f853a331e06c7be9a14 /module/.gitignore | |
parent | e2b31b58e8777faa51561342d72a5a30127fa4b6 (diff) |
Assert that a dnode's bonuslen never exceeds its recorded size
This patch introduces an assertion that can catch pitfalls in
development where there is a mismatch between the size of
reads and writes between a *_phys structure and its respective
in-core structure when bonus buffers are used.
This debugging-aid should be complementary to the verification
done by ztest in ztest_verify_dnode_bt().
A side to this patch is that we now clear out any extra bytes
past a bonus buffer's new size when the buffer is shrinking.
Reviewed-by: Matt Ahrens <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Tom Caputi <[email protected]>
Signed-off-by: Serapheim Dimitropoulos <[email protected]>
Closes #8348
Diffstat (limited to 'module/.gitignore')
0 files changed, 0 insertions, 0 deletions