]> git.proxmox.com Git - mirror_zfs.git/commit
Test LWB buffer overflow for block cloning
authorUmer Saleem <usaleem@ixsystems.com>
Fri, 15 Dec 2023 22:18:27 +0000 (03:18 +0500)
committerGitHub <noreply@github.com>
Fri, 15 Dec 2023 22:18:27 +0000 (14:18 -0800)
commitdbda45160ffa43e5ecf0498a609230f1afee7b3f
tree96d520a9c7e9d951b6ed280b4bd40c8b4a005543
parent9b1677fb5a0824b5f4b425c0ee950aaecf252029
Test LWB buffer overflow for block cloning

PR#15634 removes 128K into 2x68K LWB split optimization, since it
was found to cause LWB buffer overflow while trying to write 128KB
TX_CLONE_RANGE record with 1022 block pointers into 68KB buffer,
with multiple VDEVs ZIL.

This commit adds a test for this particular scenario by writing
maximum sizes TX_CLONE_RANE record with 1022 block pointers into
68KB buffer, with two SLOG devices.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Signed-off-by: Umer Saleem <usaleem@ixsystems.com>
Closes #15672
tests/runfiles/linux.run
tests/test-runner/bin/zts-report.py.in
tests/zfs-tests/tests/Makefile.am
tests/zfs-tests/tests/functional/block_cloning/block_cloning_lwb_buffer_overflow.ksh [new file with mode: 0755]