# CrossFS: which allocation branch actually runs?

Adding `_NVMFDQ` does not select the NVM allocator in
`vfio_get_fd_queue_buffer` while `CRFS_OPENCLOSE_OPT` remains enabled.
The pooled-buffer path returns first.

This is a version-scoped source finding, not a claim that the OSDI measurements
used the wrong configuration. The public snapshot is not established as the
paper's experimental revision.

## Evidence

- [CrossFS term and sources](https://hesela.dev/terms/crossfs/)
- Upstream repository: https://github.com/RutgersCSSystems/CrossFS
- Revision: `4ea9c88a84f90d039b32962d0ac7822025188136` (2022-09-05).
- `libfs/Makefile` enables the pool option and comments out `_NVMFDQ`.
- `libfs/crfslibio.c`, lines 1157-1194, supplies the unchanged function in
  [allocation.c](https://hesela.dev/research/crossfs/allocation.c).
- Full-source SHA-256:
  `b865451812f0389ef8220e8f90079f28bcc8e402e4ff0617cd593f2e8487c115`.

## Isolated experiment

[probe.py](https://hesela.dev/research/crossfs/probe.py) compiles the unchanged
function with stub allocators and locks. Each allocator only marks its identity
and returns a static buffer. No driver, mount, device or persistence library runs.

| Compile-time options | Selected path for one page |
| --- | --- |
| Pool only (checked-in options) | Pool |
| Pool plus NVM flag | Pool |
| NVM flag without pool | NVM allocator stub |
| Neither | Aligned heap stub |

Each configuration also receives a zero-page request: all return null without
calling an allocator. These are deterministic cases, not statistical samples.
[results.json](https://hesela.dev/research/crossfs/results.json) contains the
results and fragment hash.

## Reproduce

Python 3 and a C compiler are required. Place the linked files in one directory.
The upstream excerpt is GPL-3.0; see [LICENSE](https://hesela.dev/research/crossfs/LICENSE).
The probe and test harness in this directory are also GPL-3.0.

```sh
python3 -B probe.py --check
python3 -B -m unittest discover -s . -p test_probe.py
curl -fL https://raw.githubusercontent.com/RutgersCSSystems/CrossFS/4ea9c88a84f90d039b32962d0ac7822025188136/libfs/crfslibio.c -o upstream.c
python3 -B probe.py --verify-upstream upstream.c --check
```

## Interpretation

Branch selection is only one condition. Reaching an allocator does not establish
that its backing survives a power failure, that flush ordering is correct, or
that recovery reconstructs the data. The README's tmpfs quick trial cannot supply
power-loss persistence. Its bare-metal crash/recovery caveat still applies.

The OSDI design uses persistent queue payloads as journal data references and
coordinates file fsync across queues. Separately evaluating configuration,
backing memory and recovery is therefore necessary when reproducing that design.

This probe is not a suggested production configuration, a CrossFS installation,
a power-cut test, a security audit or a benchmark reproduction. It makes no claim
about other revisions or the unrelated 2026 CRDT-based CrossFS.
