linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RO mount of ext4 filesystem causes writes
@ 2023-06-12  5:32 Sean Greenslade
  2023-06-12  6:20 ` Bagas Sanjaya
  0 siblings, 1 reply; 10+ messages in thread
From: Sean Greenslade @ 2023-06-12  5:32 UTC (permalink / raw)
  To: linux-ext4; +Cc: Ye Bin

Hello, folks.

I noticed a change in behavior of ext4 in recent kernels. I make use of
several luks loopback images formatted as ext4 that I mount read-only
most of the time. I use rsync to synchronize the backing images between
machines. In the past, mouning the images as read-only would not touch
the backing image contents at all, but recently this changed. Every
mount, even ones that are RO from the start, will cause some small
writes to the backing image and thus force rsync to scan the whole file.

I confirmed that the issue is still present on v6.4.rc6, so I performed
a bisect and landed on the following commit:

> eee00237fa5ec8f704f7323b54e48cc34e2d9168 is the first bad commit
> commit eee00237fa5ec8f704f7323b54e48cc34e2d9168
> Author: Ye Bin <yebin10@huawei.com>
> Date:   Tue Mar 7 14:17:02 2023 +0800
> 
>     ext4: commit super block if fs record error when journal record without error

That certainly looks like a likely cause of my issue, but I'm not
familiar enough with the ext4 code to diagnose any further. Please let
me know if you need any additional information, or if you would like me
to test anything.

Thanks,

--Sean


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

end of thread, other threads:[~2023-06-24 19:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-12  5:32 RO mount of ext4 filesystem causes writes Sean Greenslade
2023-06-12  6:20 ` Bagas Sanjaya
2023-06-13  4:48   ` Sean Greenslade
2023-06-23  1:06   ` Bagas Sanjaya
2023-06-23  4:46     ` Theodore Ts'o
2023-06-23  6:18       ` Sean Greenslade
2023-06-23 14:34         ` Theodore Ts'o
2023-06-23 15:38           ` Ritesh Harjani
2023-06-24 19:39             ` Theodore Ts'o
2023-06-23 16:53           ` Sean Greenslade

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).