summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2026-11-11 16:23:48 +0000
committerTheodore Ts'o <tytso@mit.edu>2026-11-23 15:29:16 -0500
commitc70aa271b595f9381f3a1bc8198b4bd24a64a83b (patch)
treed038ee05f3a1721922ffe86f2676dad1b428021d /scripts/basic
parent6fa4f16326dba7c5e6f1b0399f777da3321ad365 (diff)
ext4: add KUnit tests for fs/ext4/resize.c
Add a KUnit test suite (ext4_resize_test) covering online filesystem resizing, group validation, flex_bg table packing, backup descriptor reservation, and meta_bg conversion in fs/ext4/resize.c: - Precondition checks in ext4_resize_begin() and EXT4_FLAGS_RESIZING mutual exclusion with ext4_resize_end(). - Backup group iteration in ext4_list_backups() (sparse_super powers of 3/5/7, dense non-sparse sequence, and sparse_super2 s_backup_bgs) and reserved GDT validation in verify_reserved_gdb(). - Group geometry and overlap validation in verify_group_input() across partial prior groups, reserved-block ratios, out-of-bounds bitmaps and inode tables, bitmap collisions, and superblock/GDT overhead overlaps. - Flex group batch sizing in alloc_flex_gd(), descriptor flag and partial-group initialization in ext4_setup_next_flex_gd(), and packed metadata table placement and -ENOSPC handling in ext4_alloc_group_tables(). - Online partial-last-group extension in ext4_group_extend() updating superblock counts, block bitmaps, buddy caches, and backup superblocks. - Group addition in ext4_group_add() including backup reserved GDT updates via reserve_backup_gdb(), resize_inode validation and meta_bg conversion in ext4_convert_meta_bg(), and end-to-end ext4_resize_fs() growth across reserved GDT consumption into meta_bg. Route raw sb_getblk() calls in resize.c through ext4_sb_getblk() and wrap sb_issue_zeroout() in ext4_resize_issue_zeroout() with KUNIT_STATIC_STUB_REDIRECT so resize metadata I/O can be exercised deterministically in memory. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions