From 1b4dc795bd0060bd64992f1355cbf197e0a20172 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Fri, 9 Jun 2023 07:50:11 +0200 Subject: tests/cluster: note that ext4 provides no atomicity --- tests/cluster/cluster_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/cluster/cluster_test.go b/tests/cluster/cluster_test.go index 55a2b99..df35fb2 100644 --- a/tests/cluster/cluster_test.go +++ b/tests/cluster/cluster_test.go @@ -30,6 +30,13 @@ import ( // > Other Linux filesystems only guaranty page level atomicity for // > buffered read/write. // +// Note that ext4 actually provides NO ATOMICITY AT ALL. +// Quoting https://stackoverflow.com/a/35256626 : +// +// > Linux 4.2.6 with ext4: update atomicity = 1 byte +// +// TestPoCTornWrite in this package confirms this. +// // See also: // * https://lore.kernel.org/linux-xfs/20190325001044.GA23020@dastard/ // Dave Chinner: XFS is the only linux filesystem that provides this behaviour. -- cgit v1.2.3