Re: [PATCH] ext4: preserve force-fsck requests across unmount
From: Theodore Ts'o
Date: Thu Nov 19 2026 - 09:51:19 EST
On Tue, 27 Oct 2026 03:58:57 +0000, Hungyu Lin wrote:
> EXT4_TUNE_FL_FORCE_FSCK sets EXT4_ERROR_FS in the on-disk superblock
> but leaves s_mount_state unchanged. On a normal read-write unmount,
> ext4_put_super() restores s_state from s_mount_state, clearing the
> requested flag.
>
> As a result, a successful EXT4_IOC_SET_TUNE_SB_PARAM call can be lost
> before e2fsck runs: after unmount it treats the filesystem as clean
> and skips the requested check.
>
> [...]
Applied, thanks!
[1/1] ext4: preserve force-fsck requests across unmount
commit: fe66a3e2a6627bef578137722f430bd633dee3e5
Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>