]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
common/defrag: skip defrag tests on DAX-enabled filesystems for-next v2026.06.21
authorDisha Goel <disgoel@linux.ibm.com>
Mon, 8 Jun 2026 10:23:28 +0000 (15:53 +0530)
committerZorro Lang <zlang@kernel.org>
Wed, 17 Jun 2026 19:34:26 +0000 (03:34 +0800)
commitacb6d4cb84205a8e3f19ca470cfcf7bf6d93a509
treee561df373d23656e490ec462d1698bd5551b72d4
parent65caee6192ce5006bedbd40cc2889e0961c93b46
common/defrag: skip defrag tests on DAX-enabled filesystems

Online defragmentation is not supported on ext4 DAX-enabled filesystems.
The ext4 defrag ioctl (EXT4_IOC_MOVE_EXT) returns EOPNOTSUPP when used
on DAX files.

Add an ext4-specific check in _require_defrag() to skip tests when DAX
is enabled, avoiding false failures on ext4/301-304, ext4/308, and
generic/018.

XFS defrag works with DAX, so this check is ext4-specific.

Suggested-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Disha Goel <disgoel@linux.ibm.com>
Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Reviewed-by: Zorro Lang <zlang@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/defrag