linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [bug report] tune2fs: filesystem inconsistency occurs by concurrent write
@ 2023-06-25 16:00 zhanchengbin
  2023-06-26  2:17 ` Theodore Ts'o
  0 siblings, 1 reply; 9+ messages in thread
From: zhanchengbin @ 2023-06-25 16:00 UTC (permalink / raw)
  To: Theodore Ts'o; +Cc: linux-ext4, linfeilong, louhongxiang, liuzhiqiang26

Hi Tytso,
Tune2fs does not recognize writes to the manipulated filesystem in another
namespace, there will be two simultaneous write operations on a
block, resulting in filesystem inconsistencies.

The operation is as follows:
first terminal                                      second terminal
mkfs.ext4 /dev/sdb;
mount /dev/sdb /test-sdb;
dd if=/dev/zero of=/test-sdb/test1 bs=1M count=100;
                                                     unshare -m;
umount;
gdb tune2fs;
b io_channel_write_byte
r -e remount-ro /dev/sdb
c(Write a byte of old data into the cache)
                                                     exit;
(gdb finish)
tune2fs -l /dev/sdb;
tune2fs 1.46.4 (18-Aug-2021)
tune2fs: Superblock checksum does not match superblock while trying to 
open /dev/sdb
Couldn't find valid filesystem superblock.

  - bin.

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

end of thread, other threads:[~2023-07-12 15:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-25 16:00 [bug report] tune2fs: filesystem inconsistency occurs by concurrent write zhanchengbin
2023-06-26  2:17 ` Theodore Ts'o
2023-06-26 11:56   ` zhanchengbin
2023-07-04  8:35   ` zhanchengbin
2023-07-04 19:33     ` Theodore Ts'o
2023-07-08  7:29       ` zhanchengbin
2023-07-12  0:05         ` Darrick J. Wong
2023-07-12  9:06           ` zhanchengbin
2023-07-12 15:42             ` Theodore Ts'o

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).