aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2023-06-09 07:50:11 +0200
committerJakob Unterwurzacher2024-12-04 19:53:15 +0100
commitd60b851b4632b50ccd811c45626363d0ed2d1d15 (patch)
tree6d20c1cd5728887aa92dec41c457c0df2d31969c
parent655d9a81c211f8fa151d42fe87ebf91c7fc8cc10 (diff)
tests/cluster: note that ext4 provides no atomicity
-rw-r--r--tests/cluster/cluster_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/cluster/cluster_test.go b/tests/cluster/cluster_test.go
index 0a24d2d..4e3099a 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.