# tune2fs maintenance fields are not verification evidence

This small native observation changes recorded maintenance fields without
launching e2fsck. It is not a filesystem-corruption experiment, repair test,
hardware test or performance benchmark.

## Method

The probe creates two independent, unmounted 32 MiB regular-file ext4 images.
It invokes only mke2fs and tune2fs; no device, mount, loop mapping or privileged
filesystem operation is used. Each image is removed when its temporary
directory closes. The initial observation is after filesystem creation, not
after a checker run. Locale is C and timezone is UTC.

For each image it records a baseline, sets the mount count to 37, the maximum
mount count to 19, the interval to seven days, and the last-check timestamp to
2000-01-01 00:00:00 UTC. It then resets the count to zero, disables both periodic
thresholds, and sets the timestamp to 2020-01-02 03:04:05 UTC. Separate reserve
edits set one percent and then 123 blocks. Every step retains complete command
output, exit status, binary superblock fields and the corresponding listing.
Image hashes before and after each listing detect an unexpected listing write.

The retained observations show 32,768 filesystem blocks of 1,024 bytes
throughout. Reserve counts change from 1,638 to 327 to 123 without changing
filesystem geometry or image length. The disabled maximum mount count is
stored as -1 by the observed implementation. Neither a timestamp nor a mount
counter transition is evidence that the filesystem was checked.

## Reproduce

Requires Python 3.11 or later and e2fsprogs providing mke2fs and tune2fs.
The published receipts identify the actually executed versions, executable
SHA-256 hashes and probe/test source hashes. No network access is needed.

```sh
python3 -B probe.py --output results.json
python3 -B probe.py --check results.json
python3 -B -m unittest -v test_probe.py
python3 -B -O -m unittest -v test_probe.py
```

The checker uses explicit exceptions rather than Python assertions. Mutation
tests reject missing runs, an added checker command, failed commands, altered
fields, resized images, a listing write, missing provenance and wrong clock
context. Reproduction generates new image hashes and creation timestamps;
the fixed edited values and geometry, not whole-file identity across runs,
are the expected invariants.

## Interpretation and limits

The manual defines tune2fs as a parameter tool. Its -C and -T options modify
recorded values, while -c and -i configure check thresholds. These fields can
inform an invoked checker; changing them does not install a scheduler or prove
a successful check. The reserve options alter the allocation reserve rather
than resize storage. [1, 2]

This probe's subprocess receipts contain no e2fsck command. They are not an
OS-level execution trace and do not establish that all possible tune2fs
operations avoid journal recovery: eligible read-write operations in the
reviewed source can replay a pending journal. Feature conversions can also do
more than edit superblock fields. This fixture begins as a new, unmounted
filesystem and does not exercise those paths. [2]

An ordinary e2fsck invocation can skip a full check, including after journal
replay. Mounted-filesystem results are not valid in the general case. Retain
the actual checker invocation, output, exit status and checked object identity
when documenting verification; the mutable last-check field is not a substitute.
This observation does not evaluate startup integration, mounted filesystems,
UUID changes, corruption detection or older/newer implementations. [3, 4]

## Primary sources

Reviewed 2026-12-05, pinned to upstream e2fsprogs v1.47.0:

1. [tune2fs manual: listing, maintenance fields and reserves](https://github.com/tytso/e2fsprogs/blob/v1.47.0/misc/tune2fs.8.in).
2. [tune2fs implementation: direct fields, reserve update and journal recovery](https://github.com/tytso/e2fsprogs/blob/v1.47.0/misc/tune2fs.c#L3153).
3. [e2fsck manual: journal replay, forced checks and mounted-filesystem limits](https://github.com/tytso/e2fsprogs/blob/v1.47.0/e2fsck/e2fsck.8.in).
4. [e2fsck check-skipping decision](https://github.com/tytso/e2fsprogs/blob/v1.47.0/e2fsck/unix.c#L334).

These are original Hesela observations of the installed tools, not a claim
that the upstream source release was rebuilt or that another published
experiment was reproduced. Source material is linked, not redistributed.

On systems where administrative utilities are outside the default PATH, add the
installed mke2fs/tune2fs directory (commonly /usr/sbin) to PATH before running the
probe. This demonstration needs ordinary file access, not elevated privileges.
