Repository navigation
linux-refs 1.0.0
Release date: 2026-11-23. Release gate: passed on commit ee3c58a
(2026-11-22), with one documented exception (below).
The first release of linux-refs: read-only access to Microsoft ReFS
volumes from Linux through a kernel driver, a FUSE driver and four
command-line tools, all built on one shared C core. The code was written
from a clean-room format specification (docs/CLEAN-ROOM.md)
and is licensed GPL-2.0-only.
Supported
The complete table of versions and features, with what is refused and
how: docs/SUPPORT.md. In short:
ReFS versions. 3.4 to 3.14:
| Windows | ReFS | Tested on |
|---|---|---|
| Windows Server 2019 | 3.4 | volumes made by Windows, 4 KiB and 64 KiB clusters |
| Windows Server 2022 | 3.7 | the same |
| Windows Server 2025 | 3.14 | the same, plus 4096-byte sectors (4 KiB clusters) |
| Windows 11 24H2 | 3.14 | Dev Drive volumes |
| 3.5, 3.6, 3.8 to 3.13 | volumes upgraded to each of these versions by Windows |
Also read: volumes upgraded in place (from 3.4, 3.7 and from Windows
Server 2016's 3.1), and volumes that were not shut down cleanly (read as of
their last checkpoint).
Content. Directories with Windows' case rules (the volume's own upcase
table; exact names in case-sensitive directories), file metadata and the
four timestamps, resident data, extents, sparse files, block clones,
deduplicated files, hard links, symbolic links and junctions, named
streams (alternate data streams), stream snapshots (through the tools),
data checksums of integrity streams verified per unit.
Front ends.
- Kernel driver
refsfor Linux 6.18 and later, as a module or built in
(scripts/kernel-integrate.shadds it to a kernel tree). Mount options
uid=,gid=,umask=,fmask=,dmask=,driveletter=X,
streams=folder|xattr|none,streamdir=NAME,nocsum,force_version. - FUSE driver
refs-fusefor libfuse 3.10 and later, mounted as a normal
user, with the same view as the kernel driver. - Tools that need no mount and no root:
refs-info(volume details,
--checkverifies all metadata),refs-ls(listings,-l,-R,
--json),refs-cat(a file, stream or snapshot, or its SHA-256),
refs-extract(files or whole trees with holes, times, hard links, links
and streams). Each has a manual page.
Images. Partitions, whole disks, raw images and fixed VHD files with GPT
or MBR and 512- or 4096-byte sectors; the ReFS partition is found by its
boot record. VHDX, qcow2 and dynamic VHD through qemu-nbd --read-only.
Linux mapping. Named streams as read-only files in the hidden folder
.refs-streams (mirroring the tree) and, up to 64 KiB, as user.* xattrs;
Windows attributes as system.dos_attrib, system.ntfs_attrib and
system.ntfs_attrib_be (as ntfs3 offers them); other reparse points with
their raw data in system.refs_reparse; the creation time as the birth
time (statx).
Installing
From source, step by step: INSTALL.md. Distribution
packages follow after this release.
How 1.0.0 was tested
In short (details in docs/TESTING.md):
- 24 unit-test suites in userspace and 22 KUnit suites inside the kernel
(most of them the same suites, built both ways); tool and FUSE tests on
synthetic volumes. - Every file of every lab volume compared byte for byte (SHA-256) with a
manifest written inside Windows when the volume was made: the kernel
driver on all 78 lab disk images (among them four of 10 GiB, and
upgraded, 4096-byte-sector, Windows 11, unclean, compressed, encrypted,
capped-version and reparse-point volumes), the tools and the FUSE driver
on the integration set and the four 10 GiB volumes. - The kernel driver on Linux 6.18.64, 7.0.14 and 7.3.5, built in and as a
module, in test VMs with 4 CPUs; on 6.18.0 a build and part of the lab. - KASAN, UBSAN, the hung-task detector, a watchdog and
panic_on_warnon
the kernel side; AddressSanitizer, UndefinedBehaviorSanitizer and
LeakSanitizer in userspace, also forrefs-fuse. - 48 fault-injected volumes and damaged copies of lab volumes.
- Ten libFuzzer harnesses on every parser of the core, and a kernel
campaign of damaged volumes mounted and read in full through the driver. checkpatch.pl --strict, sparse, kernel-doc and stack frame limits; a
check that every format fact the code relies on for data is verified.
Release gate
1.0.0 was released only after every part of its gate passed on the same
commit (scripts/release-gate.sh):
| Part | Contents | Result |
|---|---|---|
| checks | quality, unit and image tests, the facts check, nine test kernels, lab passes on every kernel, the modules and KASAN | passed (23 of 23; every test VM on 4 CPUs; KUnit 22/22 in every boot) |
| segment 1 | fuzz_btree, fuzz_ckpt, fuzz_data; kernel campaign quarter 1 |
passed: 38 M, 311 M and 412 M runs |
| segment 2 | fuzz_dev, fuzz_ns, fuzz_open; quarter 2 |
passed: 2.4 G, 1.6 G and 0.2 M runs |
| segment 3 | fuzz_page, fuzz_part; quarter 3 |
passed: 551 M and 557 M runs |
| segment 4 | fuzz_supb, fuzz_vbr; quarter 4 |
kernel campaign quarter 4 and fuzz_supb (327 M runs) passed; fuzz_vbr stopped after about a minute by an out-of-date check in its own harness, not a driver error (fixed; not rerun, the owner's decision; section 10 of TESTING.md) |
Totals: 6.2 billion userspace fuzz runs; 82,946 damaged volumes through
the kernel driver (41,473 on the KASAN kernel and as many on the fuzz
kernel, 40,516 of them mounted and read in full), plus about 15,600 more in
a bonus run; no finding in the driver, the core or the tools. The
only stop was the harness check of fuzz_vbr described above
(docs/TESTING.md, section 10).
After the gate, a check of the code against new format facts found six
gaps in the driver's checks, one of them a buffer overflow on a hostile
volume (a name longer than the format allows), and new lab images showed
that volumes with several compressed containers were refused as a whole;
a code review found that a remount with options crashed the kernel.
All are fixed in 1.0.0, with regression tests, the unit tests, make itest and the kernel lab passes (section 10 of TESTING.md).
Known limits
Refused per file (the rest of the volume stays readable; the file fails
with EOPNOTSUPP or EIO and the kernel logs a rate-limited line naming
it; the tools report it and exit with 1):
- Compressed and compacted containers (LZ4, ZSTD). Signs of compression
are logged once when the volume opens. - Containers with more than one range.
- EFS-encrypted files and streams.
- Record, stream or snapshot forms not seen on a test volume.
- Data units whose checksum does not match (
EIO; thenocsumoption
reads them as stored, for recovery, and is logged).
Not supported:
- ReFS 1.x (Windows Server 2012 and 2012 R2) and ReFS 3.1 to 3.3 volumes
that were never upgraded (Windows Server 2016 and early Windows 10
releases).
Volumes upgraded from 3.1 read. Other major or minor versions are
refused unlessforce_version(--force-version) is given, which is
logged. - Cluster sizes other than 4 KiB and 64 KiB; 4096-byte sectors other than
on 3.14 with 4 KiB clusters. - Storage Spaces (pools, mirror, parity) and BitLocker (unlock first, for
example with dislocker). - Writing of any kind,
fsck, repair, formatting. - Windows owners and ACLs: ownership comes from
uid=,gid=and the
mask options. - Extended attributes (ReFS 3.8 and later) and stream snapshots shown as
files (the tools can read snapshots); reparse points other than links
are shown with their raw data only. - NFS export of a kernel mount.
Behaviour to know:
- A volume that was not shut down cleanly mounts as of its last
checkpoint: changes of up to about the last 30 seconds before the crash
are not visible. - Streams over 64 KiB are only in the stream folder, not as xattrs.
- Absolute link targets are rewritten only for the drive letter given with
driveletter=; others stay as Windows stored them. - Inode numbers come from the ReFS file IDs; IDs too large for that get
numbers from a per-mount table, stable while mounted. - Windows itself limits some features per version (for example no
per-directory case sensitivity on 3.4 and 3.7).
Clean room and legal
linux-refs was written from a format specification made in a clean-room
process: one track studied the format and wrote down facts only, a
separate track wrote the code from those facts alone. The repository holds
no Microsoft code, binaries, symbols or disk images. See
docs/CLEAN-ROOM.md and the legal section of the
README. linux-refs is not affiliated with Microsoft;
Microsoft, Windows and ReFS are trademarks of the Microsoft group of
companies.
Arch Linux packages
Three packages; install what you need:
| Package | What it is | Needs |
|---|---|---|
linux-refs-tools |
refs-info, refs-ls, refs-cat, refs-extract: inspect volumes and images, extract files |
glibc |
linux-refs-fuse |
refs-fuse: mount read-only through FUSE, no kernel module |
glibc, fuse3 |
linux-refs-dkms |
the kernel driver (mount -t refs), built by DKMS for each installed kernel |
dkms, linux-headers or linux-lts-headers (kernel 6.18 or newer) |
Install-tested in a clean Arch container with linux 7.3.5 and linux-lts
6.18.64 (the module built and was removed cleanly); loading the module and
mounting were not tested in the container.
# pacman -U linux-refs-tools-1.0.0-1-x86_64.pkg.tar.zst linux-refs-fuse-1.0.0-1-x86_64.pkg.tar.zst linux-refs-dkms-1.0.0-1-any.pkg.tar.zst
Debian and Ubuntu packages are not provided: their kernels are older than
6.18. Check the downloads with sha256sum -c SHA256SUMS.