public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* [Bug 219132] New: Redundant "re-mounted ro" message
@ 2024-08-06 18:20 bugzilla-daemon
  2024-08-06 19:14 ` [Bug 219132] " bugzilla-daemon
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: bugzilla-daemon @ 2024-08-06 18:20 UTC (permalink / raw)
  To: linux-ext4

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

            Bug ID: 219132
           Summary: Redundant "re-mounted ro" message
           Product: File System
           Version: 2.5
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: low
          Priority: P3
         Component: ext4
          Assignee: fs_ext4@kernel-bugs.osdl.org
          Reporter: aros@gmx.com
        Regression: No

I'm not a fan of ext4 logging this:

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

when the filesystem was already mounted RO.

It's confusing and may lead the user to believe the FS was mounted RW
previously.

I'd like the ext4 driver to ignore or not log RO remount requests when the FS
is already mounted RO.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 219132] Redundant "re-mounted ro" message
  2024-08-06 18:20 [Bug 219132] New: Redundant "re-mounted ro" message bugzilla-daemon
@ 2024-08-06 19:14 ` bugzilla-daemon
  2024-08-07  3:33 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2024-08-06 19:14 UTC (permalink / raw)
  To: linux-ext4

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

--- Comment #1 from Artem S. Tashkinov (aros@gmx.com) ---
I guess hiding this message might break someone's workflow, so let's do it
better:

EXT4-fs (nvme0n1p3): Ignoring the RO remount request, there's nothing to do.

or something like that.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 219132] Redundant "re-mounted ro" message
  2024-08-06 18:20 [Bug 219132] New: Redundant "re-mounted ro" message bugzilla-daemon
  2024-08-06 19:14 ` [Bug 219132] " bugzilla-daemon
@ 2024-08-07  3:33 ` bugzilla-daemon
  2024-08-07  9:53 ` bugzilla-daemon
  2024-08-07 13:41 ` bugzilla-daemon
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2024-08-07  3:33 UTC (permalink / raw)
  To: linux-ext4

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

Theodore Tso (tytso@mit.edu) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tytso@mit.edu

--- Comment #2 from Theodore Tso (tytso@mit.edu) ---
The suggestion in #1 isn't necessarily correct, though, because we could be
remounting to change some other superblock options.  For example:

mount -o remount,errors=continue /dev/vdc

Fundamentally, whenever runs "mount -o remount ...", we issue the "EXT4-fs
(DEVICE): re-mounted ..." message.   The fact that we print the ro/rw and quota
mode is completely arbitrary and more due to historical reasons than anything
else.   For example, the fact that we print the quota mode is pretty much
useless in this day and era and there are plenty of other mount option/state
that would probably be much more useful.

So the fact that we print the ro/rw state doesn't imply that it has changed. 
For example, if the file system is mounted read/write and we change the errors=
mode from continue to remount-ro, etc., we will print:

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

... and it doesn't mean that we changed the rw/ro mode from ro to r/w.   

Should we change the behavior to something else?   Perhaps, although to be
honest it's not the highest priority thing for me.   I could see dropping the
quota mode and only printing the message when the r/o state changes.  Or maybe
we display any mount option that changes (which would be a lot more work).  Is
it worth the effort?  Meh.....
.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 219132] Redundant "re-mounted ro" message
  2024-08-06 18:20 [Bug 219132] New: Redundant "re-mounted ro" message bugzilla-daemon
  2024-08-06 19:14 ` [Bug 219132] " bugzilla-daemon
  2024-08-07  3:33 ` bugzilla-daemon
@ 2024-08-07  9:53 ` bugzilla-daemon
  2024-08-07 13:41 ` bugzilla-daemon
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2024-08-07  9:53 UTC (permalink / raw)
  To: linux-ext4

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

--- Comment #3 from Artem S. Tashkinov (aros@gmx.com) ---
Log messages normally convey what has actually been done.

The current messaging implies the kernel has indeed remounted something which
is not the case. That's my concern.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 219132] Redundant "re-mounted ro" message
  2024-08-06 18:20 [Bug 219132] New: Redundant "re-mounted ro" message bugzilla-daemon
                   ` (2 preceding siblings ...)
  2024-08-07  9:53 ` bugzilla-daemon
@ 2024-08-07 13:41 ` bugzilla-daemon
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2024-08-07 13:41 UTC (permalink / raw)
  To: linux-ext4

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

--- Comment #4 from Theodore Tso (tytso@mit.edu) ---
I hear you, and I agree that this is a reasonable interpretation of the log
message, even if it's never been the case.   If you'd like to submit a patch
which makes the change where it only logs when the ro/rw state changes, and
drops the quota mode, I'd certainly accept it.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-08-07 13:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-06 18:20 [Bug 219132] New: Redundant "re-mounted ro" message bugzilla-daemon
2024-08-06 19:14 ` [Bug 219132] " bugzilla-daemon
2024-08-07  3:33 ` bugzilla-daemon
2024-08-07  9:53 ` bugzilla-daemon
2024-08-07 13:41 ` bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox