Repository navigation
Releases
linux-refs 1.5.1
linux-refs 1.5.1 release notes
Release date: 2026-11-28. Release gate: passed in the night of
2026-11-27: checks on bd017da; fuzzing segments 1 to 4 and the Storage
Spaces part on 9ddc6cc, whose only failed step (itest-spaces-dm, two new
lab pools refused by design) was fixed in the test script and passed on
bd017da; the later commits change test scripts only. tests/lab/
compare-release.sh --data: 960 outputs on 240 volumes identical to 1.5.0.
Source tarball only; packages later. A fix release of the
1.5 long-term series, after four independent code reviews of 1.5.0
(verdicts kept with the owner); no new features and no change to the
on-disk reading of valid volumes (tool output on all 240 lab volumes
equal to 1.5.0).
Security and robustness:
- Kernel: a stack write one past a path walk's end (finding 1);
unlocked parent walk (5); directory listings built once and charged to
the opener (4); SEEK_DATA/SEEK_HOLE killable (11); name and stream
folder matching as lookup does (16, 20); f_namelen in bytes (22);
listxattr capped at 64 KiB; mirror pending entries sized (N7). - Disk images: stored parent paths are followed only inside the image's
folder, for VHD, VHDX and qcow2, opened once and checked on that file
(2, 17, N1, N9, N10); a name that leads to a device, FIFO or terminal
is never opened (R1); without /proc a clear message (R2); container and
allocation sizes bounded (3, 9, 10). - Tools: refs-extract cannot write outside DEST (15); short writes,
close errors and --keep-partial handled on every file system and
sandbox (7, 18, N2, R3, R5); control characters escaped in text output
and on stderr (12, N4, R4); JSON escaping of EA names (8, N8); upcase
tables checked (19, N3); file times without overflow (F1).
Tests: the review findings' own tests run in make test
(tests/review); tests/lab/compare-release.sh compares every tool's
output (and with --data every file) with the previous release.
Packages
Arch Linux packages, built from the tag archive with the attached
PKGBUILD and install-tested in a clean Arch container (kernel 7.3.6:
the DKMS module builds and installs; removal leaves nothing behind):
linux-refs-tools: refs-info, refs-ls, refs-cat, refs-extract,
refs-recover, refs-log, refs-usn and their manual pageslinux-refs-fuse: refs-fuselinux-refs-dkms: the kernel driver formount -t refs(DKMS; for
Secure Boot see INSTALL.md)
pacman -U linux-refs-tools-1.5.1-1-x86_64.pkg.tar.zst ...;
SHA256SUMS lists every file. Gentoo: the linux-refs-overlay has
1.5.1 (tools, fuse, kmod; a zlib USE flag, on by default).
linux-refs 1.5.0
Release date: 2026-11-27. Release gate: passed on commit 0ed66d1
(2026-11-26), fuzzing at the 1.1 to 1.3 budget (15 minutes per harness,
20,000 volumes per kernel campaign), with one documented exception:
the release adds commit 8cfd578, two pointers initialised so that
builds with link-time optimisation (Arch's default) compile (no
change in behaviour); for it the unit and tool tests, the quality
check (now with an LTO build), the lab tests of the tools and of the
disk images and 15 minutes of fuzz_img were run again, not the whole
gate. The complete list of what is supported is
docs/SUPPORT.md.
1.5 is the long-term-support series (SECURITY.md): the
completed read-only version. Security fixes are made in 1.5.x from now on;
1.4 and 1.3 are no longer maintained (1.5 reads everything they read).
Write support comes in the 2.x line.
New in 1.5.0
- Disk images read directly. The tools and
refs-fuseopen VHDX
(fixed, dynamic and differencing, the log of a VM that was not shut
down cleanly applied in memory), VHD (fixed, dynamic and differencing)
and qcow2 (versions 2 and 3, zero and compressed clusters, deflate and
zstd, subclusters, backing files) directly, as a normal user, without
qemu-nbd. The container is recognised by its contents; parents and
backing files are found where the image says, next to it, or by
--parent; images are only ever opened read-only. Encrypted qcow2 and
qcow2 with an external data file are refused.--rawreads a file as
it is. See docs/USAGE.md. - ReFS 3.2 and 3.3 (Windows 10 1703 and 1709), also volumes upgraded
from them by newer Windows. - 4096-byte sectors on every ReFS version 3.1 to 3.14: 3.2, 3.3, 3.4,
3.7 and 3.14 with 4 KiB and 64 KiB clusters, and the intermediate
versions 3.5, 3.6 and 3.8 to 3.13 (1.4: 3.14 with 4 KiB clusters and 3.1
only). - The older checkpoint (
--checkpoint older,-o checkpoint=older):
the volume as Windows recorded it one step before the newest state; on
a volume cut off while being written to, files as they were some
seconds earlier. See docs/USAGE.md. - Deleted files (
refs-recover, ReFS 3.4, 3.7 and 3.14): found in the
old copies of directory pages that ReFS leaves on the disk, listed or
copied out, each with a status (complete only when its integrity
checksums match; otherwise unverified, partial or overwritten). See
docs/USAGE.md. - The redo log as a timeline (
refs-log, ReFS 3.4, 3.7 and 3.14):
what the log recorded after the newest checkpoint (the last changes
before a crash or power loss): creates, deletes, renames, new sizes and
times, oldest first; listed, not applied. refs-infoshows whether a 3.x volume was shut down cleanly.- The change journal (
refs-usn): where the volume's USN journal is
on, every change Windows recorded to every file (creates, deletes,
renames, data and attribute changes), oldest first, asfsutil usn readjournallists it, also after the journal has wrapped. See
docs/USAGE.md.
Source code
linux-refs-1.5.0.tar.gz is the source of this release (the tag
v1.5.0), SHA-256
9c8f4822d7398e98ef039b724d89dbc528d669ddacb52bd27ece8043ae81b3db.
Build and install as described in
INSTALL.md.
New in 1.5: zlib, optional, for deflate-compressed qcow2 images (make -C userspace REFS_NO_ZLIB=1 builds without it). OpenSSL 3 or 4 is needed for
the --pfx options, as in 1.3 (optional: REFS_NO_EFS=1).
Packages
Arch Linux packages, built from the tag archive above with the attached
PKGBUILD and install-tested in a clean Arch container (kernel 7.3.6:
the DKMS module builds; removal leaves nothing behind):
linux-refs-tools: refs-info, refs-ls, refs-cat, refs-extract,
refs-recover, refs-log, refs-usn and their manual pageslinux-refs-fuse: refs-fuselinux-refs-dkms: the kernel driver formount -t refs(DKMS; for
Secure Boot see INSTALL.md)
pacman -U linux-refs-tools-1.5.0-1-x86_64.pkg.tar.zst ...;
SHA256SUMS lists every file. Gentoo: the linux-refs-overlay has
1.5.0 (tools, fuse, kmod; a zlib USE flag, on by default).
linux-refs 1.4.0
Release date: 2026-11-26. Release gate: passed on commit 1537cea
(2026-11-25), without exceptions; its fuzzing is the 1.3 gate's (commit
4d7103a), as the code is unchanged. The complete list of
what is supported is docs/SUPPORT.md.
1.4 is the long-term-support series (SECURITY.md):
it has the same driver, FUSE driver and tools as 1.3 and adds ReFS on
Storage Spaces. (Changed 2026-11-26: at its release this said 1.3 stays
the long-term-support series; security fixes are made in 1.4.x instead.)
New in 1.4.0
- ReFS on Storage Spaces. A ReFS volume on a Storage Spaces virtual
disk (simple, two- and three-way mirror, single and dual parity; Windows
Server 2016 to 2025, Windows 10 and 11) is read through the separate
project linux-storage-spaces 1.0, which assembles the virtual disk
from the pool's member disks, read-only: over nbd with its
sspaces-export(no kernel module needed), or as/dev/mapper/NAME
with itsdm-sspacesdevice-mapper target andsspaces-setup.
linux-refs then reads the volume like any disk, through the tools,
refs-fuseand the kernel driver. Degraded pools read from the
remaining copies or parity; members that were away are never read where
Windows marked them out of step. Tested on 36 lab spaces made by Windows
through every front end; see docs/USAGE.md. - Mirror copies that differ. linux-storage-spaces fails such a range
with an I/O error instead of picking a copy; each copy can be read on
its own (--copy N), and linux-refs' checks (refs-info --check, the
checksums of the metadata and of integrity streams) show which copy is
right. The procedure is in docs/USAGE.md. - No change to the driver, the FUSE driver or the tools themselves: their
code is the code of 1.3.0.
Source code
linux-refs-1.4.0.tar.gz is the source of this release (the tag
v1.4.0), SHA-256
dbd1fad8a236462db87ae4177c9bb1382707fa91bc8dde06bf735e52cfa2e847.
Build and install as described in
INSTALL.md.
OpenSSL 3 or 4 is needed for the --pfx options (optional: make -C userspace REFS_NO_EFS=1 builds without them).
Check the downloads with sha256sum -c SHA256SUMS.
Packages
Arch Linux, three packages (install what you need):
| Package | What it is | Needs |
|---|---|---|
linux-refs-tools |
refs-info, refs-ls, refs-cat, refs-extract |
glibc, lz4, openssl, zstd |
linux-refs-fuse |
refs-fuse: mount read-only through FUSE, no kernel module |
glibc, fuse3, lz4, openssl, zstd |
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) |
# pacman -U linux-refs-tools-1.4.0-1-x86_64.pkg.tar.zst linux-refs-fuse-1.4.0-1-x86_64.pkg.tar.zst linux-refs-dkms-1.4.0-1-any.pkg.tar.zst
Built from the tag's source archive (the attached tarball; the attached
PKGBUILD carries its checksum) and install-tested in a clean Arch
container with linux 7.3.6: the module was built and signed by DKMS and
removed cleanly, the tools and refs-fuse run (loading the module and
mounting were not tested there). For ReFS on Storage Spaces, also install
the linux-storage-spaces 1.0.0 packages.
Gentoo: the overlay
linux-refs-overlay
has sys-fs/linux-refs-tools, sys-fs/linux-refs-fuse and
sys-fs/linux-refs-kmod 1.4.0 (the local USE flag efs, default on, of
tools and fuse pulls in dev-libs/openssl), and
sys-fs/linux-storage-spaces-tools and sys-fs/linux-storage-spaces-kmod
1.0.0.
Debian and Ubuntu packages are not provided: their kernels are older than
6.18.
linux-refs 1.3.0
Release date: 2026-11-25. Release gate: passed on commit
4d7103a (2026-11-25), without exceptions. The complete list of what is supported is
docs/SUPPORT.md.
1.3 is the first long-term-support series: security problems found in it
are fixed in 1.3.x releases (SECURITY.md).
Changed 2026-11-26: the long-term support moved to the 1.4 series,
which has the same driver, FUSE driver and tools as 1.3; security fixes
are made in 1.4.x, so please use 1.4.0
or newer (SECURITY.md).
New in 1.3.0
- EFS decryption. EFS-encrypted files (Windows Server 2025 and ReFS
3.11 and later can hold them) can now be decrypted byrefs-cat,
refs-extractandrefs-fusewith your own key, exported from Windows
as a PFX file:--pfx FILEwith--pfx-pass-file FILEor
--pfx-pass-fd N(otherwise the password is asked on the terminal
without echo), and-o pfx=FILEwith-o pfx_pass_file=FILEfor
refs-fuse. Decrypting only, never encrypting. The password is never
taken from an argument or the environment; withpfx=the options
allow_otherandallow_rootare refused. The kernel driver never
decrypts: it keeps refusing EFS-encrypted files and contains no
cryptography. Any user's or recovery agent's RSA key opens the files it
was given for: files shared with several users, files with a recovery
agent, and files whose owner has an ECC key (EFS version 4 metadata,
through their recovery agent). Verified on volumes written by Windows
Server 2025: version 2 and 4 metadata, RSA keys, AES-256 file keys,
AES-256-CBC per 512-byte unit. Refused per file: ECC keys themselves (a
PFX with an ECC key is not loaded), other algorithms (for example 3DES,
which Windows Server 2025 does not write), smart-card protected entries,
other metadata versions, and named streams of encrypted files. OpenSSL 3 is an optional build dependency; without it the
tools build without the--pfxoptions (make -C userspace REFS_NO_EFS=1). - Windows AF_UNIX sockets (reparse tag 0x80000023) are shown as
sockets in both drivers (opening one fails withENXIO, as for any
socket) and byrefs-ls(sock,"type":"socket");refs-extract
skips them with a message. Their raw data stays in
system.refs_reparse. nodev: both drivers always mount without device files, so a
volume can never open a device of the host.
Source code
linux-refs-1.3.0.tar.gz is the source of this release (the tag
v1.3.0); check it with sha256sum -c SHA256SUMS. Build and install as
described in INSTALL.md.
OpenSSL 3 is needed for the --pfx options (optional: make -C userspace REFS_NO_EFS=1 builds without them).
Packages
Arch Linux, three packages (install what you need):
| Package | What it is | Needs |
|---|---|---|
linux-refs-tools |
refs-info, refs-ls, refs-cat, refs-extract |
glibc, lz4, openssl, zstd |
linux-refs-fuse |
refs-fuse: mount read-only through FUSE, no kernel module |
glibc, fuse3, lz4, openssl, zstd |
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) |
# pacman -U linux-refs-tools-1.3.0-1-x86_64.pkg.tar.zst linux-refs-fuse-1.3.0-1-x86_64.pkg.tar.zst linux-refs-dkms-1.3.0-1-any.pkg.tar.zst
Install-tested in clean Arch containers with linux 7.3.6 and linux-lts
6.18.65 (the module built and was removed cleanly; refs-cat --pfx decrypted
EFS files of a lab volume equal to Windows; loading the module and
mounting were not tested there). The PKGBUILD attached here carries the
checksum of GitHub's source archive of the tag (v1.3.0.tar.gz; the
attached linux-refs-1.3.0.tar.gz has the same files but its own checksum). Check the downloads with
sha256sum -c SHA256SUMS.
Gentoo: the overlay
linux-refs-overlay
has sys-fs/linux-refs-tools, sys-fs/linux-refs-fuse and
sys-fs/linux-refs-kmod 1.3.0; the local USE flag efs (default on) of
tools and fuse pulls in dev-libs/openssl.
Debian and Ubuntu packages are not provided: their kernels are older than
6.18.
linux-refs 1.2.0
Release date: 2026-11-24. Release gate: passed on commit
0f112c9, with one accepted known issue (the benchmark, below). The complete list of what is supported is
docs/SUPPORT.md.
New in 1.2.0
- Extended attributes (ReFS 3.8 and later: Windows Server 2025,
Windows 11 and upgraded volumes). Both drivers show them as the
read-only xattrssystem.refs_ea.<NAME>;refs-extract --xattrswrites
them asuser.refs_ea.<NAME>;refs-ls -lcounts them and--json
lists them. Every EA of the lab volumes reads equal to what Windows
reports, byte for byte. A damaged set of EAs is refused for that entry's
EAs only. - WSL metadata. With the mount option
wsl(both drivers) the owner,
group and permission bits come from the EAs WSL keeps ($LXUID,
$LXGID,$LXMOD);refs-extract --wsldoes the same for the copies. - ReFS 1.1 and 1.2 (Windows Server 2012 and 2012 R2), through the
tools,refs-fuseand the kernel driver, also volumes that newer
Windows has mounted (a 1.2 volume stays 1.2; a 1.1 volume written to by
Server 2025 gets 1.2 checkpoints and can hold named streams). Every file
of the 1.1 and 1.2 lab volumes reads equal to what Windows recorded,
integrity checksums included. A 1.x volume that was not shut down
cleanly is read from its newest checkpoint and reported; renames of its
last few seconds can be missing. - Stream snapshots as files (ReFS 3.7 and later). Both drivers show a
file's snapshots as read-only files in its stream folder,
.refs-streams/<path>/:snapshots/<name>;refs-extract --snapshots
copies them the same way. Every snapshot of the lab volumes (also of
sparse, integrity, empty and zeroed files, 21-deep chains, 4 KiB and 64
KiB clusters) reads equal to the file Windows had when it was taken.
Fixed in 1.2.0
- Files with stream snapshots (ReFS 3.7 and 3.14). In a file with
snapshots, a range the live file had zeroed or truncated after a snapshot
could be refused (rows 1.1 did not know: tombstones 0x48 and 0x58, weak
copies 0x450), and a hole marker over a range a snapshot still holds
would have shown the snapshot's old data instead of zeros. Now the
newest layer with a row for a range always decides, as Windows does: on
the lab volumes every file with snapshots reads equal to Windows (also
sparse files, whose allocated size a snapshot leaves stale).
1.1 gave no wrong data on any lab volume, with 4 KiB or 64 KiB clusters
(they hold no such hole marker).
Known issues in 1.2.0
- Cold
staton 64 KiB ReFS 3.14 volumes is up to 14 % slower than in
1.1 (about 2 microseconds per file: 15 to 20 ms for 10,000 files with
nothing cached). Measured with 1.1 and 1.2 back to back on the same
machine; every other measurement equals 1.1. To be addressed in 1.3.
Packages
Arch Linux, three packages (install what you need):
| Package | What it is | Needs |
|---|---|---|
linux-refs-tools |
refs-info, refs-ls, refs-cat, refs-extract |
glibc, lz4, zstd |
linux-refs-fuse |
refs-fuse: mount read-only through FUSE, no kernel module |
glibc, fuse3, lz4, zstd |
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) |
# pacman -U linux-refs-tools-1.2.0-1-x86_64.pkg.tar.zst linux-refs-fuse-1.2.0-1-x86_64.pkg.tar.zst linux-refs-dkms-1.2.0-1-any.pkg.tar.zst
Install-tested in clean Arch containers with linux 7.3.5 and linux-lts
6.18.65 (the module built and was removed cleanly; loading the module and
mounting were not tested there). The PKGBUILD attached here carries the
checksum of this release's source archive. Check the downloads with
sha256sum -c SHA256SUMS.
Gentoo: the overlay
linux-refs-overlay
has sys-fs/linux-refs-tools, sys-fs/linux-refs-fuse and
sys-fs/linux-refs-kmod 1.2.0.
Debian and Ubuntu packages are not provided: their kernels are older than
6.18.
linux-refs 1.1.0
Release date: 2026-11-24. Release gate: passed on commit
85f4c8e (2026-11-23), without exceptions. The complete list of what is
supported is
docs/SUPPORT.md.
New in 1.1.0
-
ReFS 3.1: Windows Server 2016 volumes. Volumes that Server 2016
formatted, and that were never attached to a newer Windows, now read
through the tools,refs-fuseand the kernel driver, with 4 KiB and
64 KiB clusters, integrity streams included. Their boot record stores a
container size of 0, which means 64 MiB;refs-infoshows the size it
uses with a note. (Release 1.0 already read 3.1 volumes that a newer
Windows had upgraded.) Also on disks with 4096-byte sectors, with 4 KiB
and 64 KiB clusters. -
Compressed data. Files on volumes where Windows compressed data
(ReFS compression on Server 2025, LZ4 and ZSTD) now read, through the
tools,refs-fuseand the kernel driver. The kernel driver uses the
kernel's own decompressors; the tools andrefs-fuseuse liblz4 and
libzstd, each optional (without one, files in its format are refused
with a message naming the package). Read on ReFS 3.8 to 3.14, with
4 KiB and 64 KiB clusters; still refused: compacted containers of three
or four ranges (until they can be tested), and format 3 (LZ4 with Intel
QAT hardware). -
Much faster. A cache of verified metadata pages (the kernel driver:
64 MiB per volume by default,cache_mb=; the tools andrefs-fuse:
--cache-mb,-o cache_mb=), pages shared without copying, and the
stream folder's listings kept for the mount (the volume never changes
while mounted). Every page is still checked the first time it is read.
Measured with the kernel driver in a test VM on the same machine,
release 1.0.0 against 1.1.0 (medians of three runs):Volume Walk, cold Walk, warm stat of every file, cold Read all files, cold ReFS 3.14, 4 KiB clusters, 10,072 files 2.9 s to 0.18 s 1.5 s to 6.5 ms 1.5 s to 0.12 s 3.5 s to 0.67 s ReFS 3.14, 64 KiB clusters 9.2 s to 0.21 s 4.5 s to 6.5 ms 4.6 s to 0.14 s 9.5 s to 0.68 s ReFS 3.4, 64 KiB clusters 9.1 s to 0.21 s 4.5 s to 6.5 ms 4.6 s to 0.15 s 10.6 s to 0.90 s ReFS 3.14, 10 GiB, 26,032 entries, 8.9 GB of files 10.5 s to 1.2 s 4.9 s to 0.17 s 3.8 s to 0.43 s 19.2 s to 12.5 s No measurement got slower. The caches cost about 10 MB of kernel memory
after walking a 10,000-file volume, at most the cache size (plus the
kernel's usual inode and name caches) on large ones. Release 1.0.0 took
seconds to list the stream folder on volumes with 64 KiB clusters,
because it checked every file for streams again on every listing.
Fixed in 1.1.0
- An out-of-bounds read on crafted volumes. A metadata page that
claims to be an inner B+ tree node with no rows passed 1.0.0's checks,
and the code then read far beyond the page: a crash of the tools and
refs-fuse, a possible oops of the kernel driver. Such a page is now
refused as damaged. Found by fuzzing. - Folders holding a subdirectory with extended attributes can be
listed again. 1.0.0 refused the whole folder as damaged ("reference
tail"): the subdirectory's entry carries its EA size where 1.0.0
expected zero bytes. Seen on ReFS 3.10 and 3.14 (for example with WSL's
file metadata on a ReFS volume). - Files with WSL metadata. WSL special files (device nodes, FIFOs,
sockets, WSL symlinks) that carry WSL's EAs read again: 1.0.0 refused
them as damaged because a table's row counter, which Windows leaves
above the real number of rows, was checked for equality. Every row
counter is now treated as an upper bound, as Windows does. - Windows attributes as Windows shows them. Internal bits such as
0x40000 (the file has EAs) no longer appear in the attribute xattrs and
inrefs-ls -l; only the bits Windows itself reports are shown. - Building with link-time optimisation (
-flto, as Arch and Gentoo
do) no longer fails on a false warning in the test builder, and the
userspace programs now takeLDFLAGS(full RELRO in distribution
builds).
Still not supported
- ReFS 3.2 and 3.3 (early Windows 10): no volume of these versions could be
made for testing; refused,force_versionlets you try (logged). - Everything else as listed for 1.0.0 below and in
docs/SUPPORT.md.
Packages
Arch Linux, three packages (install what you need):
| Package | What it is | Needs |
|---|---|---|
linux-refs-tools |
refs-info, refs-ls, refs-cat, refs-extract |
glibc, lz4, zstd |
linux-refs-fuse |
refs-fuse: mount read-only through FUSE, no kernel module |
glibc, fuse3, lz4, zstd |
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) |
# pacman -U linux-refs-tools-1.1.0-1-x86_64.pkg.tar.zst linux-refs-fuse-1.1.0-1-x86_64.pkg.tar.zst linux-refs-dkms-1.1.0-1-any.pkg.tar.zst
Install-tested in clean Arch containers with linux 7.3.5 and linux-lts
6.18.65 (the module built and was removed cleanly; loading the module and
mounting were not tested there). The PKGBUILD attached here carries the
checksum of this release's source archive. Check the downloads with
sha256sum -c SHA256SUMS.
Gentoo: the overlay
linux-refs-overlay
has sys-fs/linux-refs-tools, sys-fs/linux-refs-fuse and
sys-fs/linux-refs-kmod 1.1.0.
Debian and Ubuntu packages are not provided: their kernels are older than
6.18.
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...