RE: [EXT] [systemd-devel] [PATCH] libblkid: fix spurious ext superblock checksum mismatches

"Windl, Ulrich" <[email protected]>
Newsgroups org.kernel.vger.util-linux
Message-ID <[email protected]>
> -----Original Message-----
> From: systemd-devel <[email protected]> On
> Behalf Of Krister Johansen
> Sent: Monday, November 18, 2024 9:35 PM
> To: [email protected]
> Cc: Karel Zak <[email protected]>; [email protected];
> David Reaver <[email protected]>; Theodore Ts'o <[email protected]>
> Subject: [EXT] [systemd-devel] [PATCH] libblkid: fix spurious ext superblock
> checksum mismatches
> 
> Reads of ext superblocks can race with updates.  If libblkid observes a
[Windl, Ulrich] 

I really wonder:

Can one single block be inconsistent when read, considering that the block on disk is not inconsistent?
That would mean that the block buffer you are reading is being modified by another process.
AFAIK the basic UNIX semantic guarantee that a block is read atomically; if it's not, something is severely broken, and I don't think that O_DIRECT fixes that.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.