]> www.infradead.org Git - users/hch/misc.git/commit
ext4: on a remount, only log the ro or r/w state when it has changed
authorNicolas Bretz <bretznic@gmail.com>
Wed, 19 Mar 2025 17:10:11 +0000 (11:10 -0600)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 21 Mar 2025 05:33:11 +0000 (01:33 -0400)
commitd7b0befd09320e3356a75cb96541c030515e7f5f
tree4e8cad50468920fe28002da6d86779cad5b213b1
parent129245cfbd6d79c6d603f357f428010ccc0f0ee7
ext4: on a remount, only log the ro or r/w state when it has changed

A user complained that a message such as:

EXT4-fs (nvme0n1p3): re-mounted UUID ro. Quota mode: none.

implied that the file system was previously mounted read/write and was
now remounted read-only, when it could have been some other mount
state that had changed by the "mount -o remount" operation.  Fix this
by only logging "ro"or "r/w" when it has changed.

https://bugzilla.kernel.org/show_bug.cgi?id=219132

Signed-off-by: Nicolas Bretz <bretznic@gmail.com>
Link: https://patch.msgid.link/20250319171011.8372-1-bretznic@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/super.c