]> git.proxmox.com Git - mirror_zfs.git/commit
tests: add test for vdev_disk page alignment check
authorRob Norris <rob.norris@klarasystems.com>
Wed, 10 Apr 2024 01:19:50 +0000 (11:19 +1000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 11 Apr 2024 21:42:46 +0000 (14:42 -0700)
commitbc27c494049e5282f90b103ee45d0fe12310aac4
treefb45ce71c268fd134a1744a24a31871ef03247b3
parent44f337be30e1502b32c8d381344044f15dd34674
tests: add test for vdev_disk page alignment check

This provides a test driver and a set of test vectors for the page
alignment check callback function vdev_disk_check_pages_cb().

Because there's no good facility for exposing this function to a
userspace test right now, for now I'm just duplicating the function and
adding commentary to remind people to keep them in sync.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16076
module/os/linux/zfs/vdev_disk.c
tests/runfiles/common.run
tests/runfiles/sanity.run
tests/zfs-tests/Makefile.am
tests/zfs-tests/tests/functional/vdev_disk/.gitignore [new file with mode: 0644]
tests/zfs-tests/tests/functional/vdev_disk/page_alignment.c [new file with mode: 0644]