]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: tests: zoned: add tests cases for zoned code
authorNaohiro Aota <naohiro.aota@wdc.com>
Wed, 4 Feb 2026 07:31:25 +0000 (16:31 +0900)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 Apr 2026 16:55:52 +0000 (18:55 +0200)
commit1ba19a6ea9f27ea383560d3ead6d8f5b773aff33
tree5ebfafde81d90473a28dfae00e0e6b9146662161
parent591cd656a1bf5ea94a222af5ef2ee76df029c1d2
btrfs: tests: zoned: add tests cases for zoned code

Add a test function for the zoned code, for now it tests
btrfs_load_block_group_by_raid_type() with various test cases. The
load_zone_info_tests[] array defines the test cases.

Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/Makefile
fs/btrfs/tests/btrfs-tests.c
fs/btrfs/tests/btrfs-tests.h
fs/btrfs/tests/zoned-tests.c [new file with mode: 0644]
fs/btrfs/zoned.c