test-atomic-writes

Test your filesystem’s ability to correctly serialize writes as expected in APPEND mode on a POSIX system.

License

Resources

Usage

% ./bin/test-atomic-writes -help
Usage of ./bin/test-atomic-writes:
  -c int
      c(ount): of writes per worker, use at least 1 (default 50)
  -f string
      f(ilename) to use for test (default "/tmp/testdata.txt")
  -readonly
      readonly: just run the validate function, use identical flags
  -s int
      s(size): in bytes to write, use at least 2 (default 1024)
  -w int
      w(orkers): number of concurent writers, use at least 1 and no more than 222 (default 3)
  -worker int
      worker: perform the writes, internal (default -1)
Note: The readonly switch also needs the identical parameters used to create the file. Note: Shuffle express how interleved the workers output is with one another. It is the ratio of the times a message and its predecessor were written by different workers over the number of workers.

Live example on

Build, test, and run

./build.sh
go test -list=. ./...
Entering TestMain...
TestAtomicWrites
TestReadOnly
TestAtomicWritesExec
TestReadOnlyExec
Exiting TestMain...
ok    test-atomic-writes  0.248s
TestAtomicWritesHandler
ok    test-atomic-writes/api  0.434s
Entering TestMain...
TestAtomicWrites
TestReadOnly
Exiting TestMain...
ok    test-atomic-writes/lib  0.630s
go test -v ./...
./test-atomic-writes

Backlog

Resolved Issues

Dev log

11.18.2026

11.09.2026

10.31.2026

10.08.2026

10.05.2026

09.27.2026

08.10.2026

08.09.2026 (d3202d2)

11.14.2025

11.12.2025

11.09.2025

11.02.2025

10.28.2025

8.27.2024

8.23.2020

8.15.2020

8.10.2020

8.8.2020

2.18.2019

6.12.2018

6.9.2018

2.24.2018

2.19.2018 Tested

2.18.2018

2.13.2018

2.10.2018