]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ext4: show 'shutdown' hint when ext4 is forced to shutdown
authorBaokun Li <libaokun1@huawei.com>
Wed, 22 Jan 2025 11:41:30 +0000 (19:41 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 13 Mar 2025 14:16:35 +0000 (10:16 -0400)
commit5855c3519463e9ac4d10424bb49953047a04c602
tree862a5c2d88f369415246b1f79dee082a1c90fc56
parent6b76715d5e41fc332b0b879e66fad6ef3db07a3f
ext4: show 'shutdown' hint when ext4 is forced to shutdown

Now, if dmesg is cleared, we have no way of knowing if the file system has
been shutdown. Moreover, ext4 allows directory reads even after the file
system has been shutdown, so when reading a file returns -EIO, we cannot
determine whether this is a hardware issue or if the file system has been
shutdown.

Therefore, when ext4 file system is shutdown, we're adding a 'shutdown'
hint to commands like mount so users can easily check the file system's
status.

Signed-off-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Zhang Yi <yi.zhang@huawei.com>
Link: https://patch.msgid.link/20250122114130.229709-8-libaokun@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/super.c