From: Aurelien DESBRIERES <aurelien@hackers.camp>
To: linux-fsdevel@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, torvalds@linux-foundation.org,
willy@infradead.org, djwong@kernel.org, adilger.kernel@dilger.ca,
pedro.falcato@gmail.com, xiang@kernel.org,
Aurelien DESBRIERES <aurelien@hackers.camp>
Subject: [PATCH v3 00/12] ftrfs: Fault-Tolerant Radiation-Robust Filesystem
Date: Tue, 14 Apr 2026 14:07:13 +0200 [thread overview]
Message-ID: <20260414120726.5713-1-aurelien@hackers.camp> (raw)
In-Reply-To: <20260413230601.525400-1-aurelien@hackers.camp>
This is v3 of the FTRFS patch series. FTRFS is a Linux kernel filesystem
designed for dependable storage in radiation-intensive environments,
implementing Reed-Solomon FEC at the filesystem block level for in-place
correction of silent bit flips on single-device embedded systems (MRAM,
NOR flash) without external redundancy.
Based on: Fuchs, Langer, Trinitis - ARCS 2015, TU Munich / MOVE-II CubeSat.
Full text: https://www.cfuchs.net/chris/publication-list/ARCS2015/FTRFS.pdf
Changes since v2 (<20260413230601.525400-1-aurelien@hackers.camp>):
- iomap IO path: replace buffer_head based read/write with iomap API
as requested by Matthew Wilcox. Implements ftrfs_iomap_begin/end,
iomap_writeback_ops (writeback_range/writeback_submit), and uses
iomap_bio_read_ops for the read path. buffer_head is retained for
metadata IO (inode table, directory blocks) as discussed.
- rename: implement ftrfs_rename in namei.c. Handles same-dir and
cross-dir rename for files and directories, updates '..' entries
and nlink counts. RENAME_EXCHANGE and RENAME_WHITEOUT return
-EINVAL (not supported in v3).
- RS FEC decoder: implement full RS(255,239) decoder in edac.c using
Berlekamp-Massey error locator polynomial, Chien search, and Forney
algorithm for in-place correction. Corrects up to 8 symbol errors
per 255-byte subblock. Returns -EBADMSG if uncorrectable.
- Radiation Event Journal: persistent ring buffer of 64 x 24 bytes
in the superblock reserved area. Records block number, timestamp
(ns), symbols corrected, and per-entry CRC32 for each RS correction
event. Written under spinlock via ftrfs_log_rs_event(). No existing
Linux filesystem provides this filesystem-level radiation event
history - VxWorks HRFS, btrfs scrub, and NVMe SMART all operate
at different layers.
AI tooling disclosure (Documentation/process/coding-assistants.rst):
Assisted-by: Claude:claude-sonnet-4-6
The submitter takes full responsibility for all code, has reviewed,
tested, and debugged every patch.
Testing:
- qemuarm64, kernel 7.0 final (Yocto Styhead 5.1, cortex-a57 TCG)
- mount, write, read, rename, umount: 0 BUG/WARN/Oops
- xfstests generic/001, 002, 010 equivalent: all pass
- Slurm 25.11.4 HPC cluster validation (3-node parallel jobs)
- checkpatch.pl: 0 errors, 0 warnings on all modified files
HPC/space use case:
FTRFS is validated in an arm64 Slurm cluster built with Yocto
(github.com/roastercode/yocto-hardened, branch arm64-ftrfs).
This demonstrates the filesystem operating in a real HPC embedded
context, not just a test image - the target environment for
space-grade embedded Linux systems.
Remaining work (v4):
- kthread scrubber with RT priority and sysfs interface
- Full xfstests Yocto recipe
- iomap for metadata IO path (currently buffer_head)
Aurelien DESBRIERES (12):
ftrfs: add on-disk format and in-memory data structures
ftrfs: add superblock operations
ftrfs: add inode operations
ftrfs: add directory operations
ftrfs: add file operations
ftrfs: add block and inode allocator
ftrfs: add filename and directory entry operations
ftrfs: add CRC32 checksumming and Reed-Solomon FEC skeleton
ftrfs: add Kconfig, Makefile and fs/ tree integration
MAINTAINERS: add entry for FTRFS filesystem
ftrfs: v2 fixes - write path, inode lifecycle, on-disk format
ftrfs: v3 - iomap IO path, rename, RS decoder, Radiation Event Journal
MAINTAINERS | 6 +
fs/ftrfs/Kconfig | 49 +++++
fs/ftrfs/Makefile | 46 ++++
fs/ftrfs/alloc.c | 251 +++++++++++++++++++++
fs/ftrfs/dir.c | 126 +++++++++++
fs/ftrfs/edac.c | 277 +++++++++++++++++++++++
fs/ftrfs/file.c | 197 +++++++++++++++++
fs/ftrfs/ftrfs.h | 201 +++++++++++++++++
fs/ftrfs/inode.c | 104 +++++++++
fs/ftrfs/namei.c | 548 ++++++++++++++++++++++++++++++++++++++++++++++
fs/ftrfs/super.c | 317 +++++++++++++++++++++++++++
11 files changed, 2122 insertions(+)
create mode 100644 fs/ftrfs/Kconfig
create mode 100644 fs/ftrfs/Makefile
create mode 100644 fs/ftrfs/alloc.c
create mode 100644 fs/ftrfs/dir.c
create mode 100644 fs/ftrfs/edac.c
create mode 100644 fs/ftrfs/file.c
create mode 100644 fs/ftrfs/ftrfs.h
create mode 100644 fs/ftrfs/inode.c
create mode 100644 fs/ftrfs/namei.c
create mode 100644 fs/ftrfs/super.c
--
2.52.0
next prev parent reply other threads:[~2026-04-14 10:07 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-13 23:05 [PATCH v2 00/11] ftrfs: Fault-Tolerant Radiation-Robust Filesystem Aurelien DESBRIERES
2026-04-13 23:05 ` [PATCH v2 01/11] ftrfs: add on-disk format and in-memory data structures Aurelien DESBRIERES
2026-04-13 23:05 ` [PATCH v2 02/11] ftrfs: add superblock operations Aurelien DESBRIERES
2026-04-13 23:05 ` [PATCH v2 03/11] ftrfs: add inode operations Aurelien DESBRIERES
2026-04-13 23:05 ` [PATCH v2 04/11] ftrfs: add directory operations Aurelien DESBRIERES
2026-04-13 23:05 ` [PATCH v2 05/11] ftrfs: add file operations Aurelien DESBRIERES
2026-04-13 23:05 ` [PATCH v2 06/11] ftrfs: add block and inode allocator Aurelien DESBRIERES
2026-04-13 23:05 ` [PATCH v2 07/11] ftrfs: add filename and directory entry operations Aurelien DESBRIERES
2026-04-13 23:05 ` [PATCH v2 08/11] ftrfs: add CRC32 checksumming and Reed-Solomon FEC skeleton Aurelien DESBRIERES
2026-04-14 17:34 ` Eric Biggers
2026-04-13 23:05 ` [PATCH v2 09/11] ftrfs: add Kconfig, Makefile and fs/ tree integration Aurelien DESBRIERES
2026-04-13 23:05 ` [PATCH v2 10/11] MAINTAINERS: add entry for FTRFS filesystem Aurelien DESBRIERES
2026-04-13 23:05 ` [PATCH v2 11/11] ftrfs: v2 fixes — write path, inode lifecycle, on-disk format Aurelien DESBRIERES
2026-04-14 12:07 ` Aurelien DESBRIERES [this message]
2026-04-14 10:22 ` [PATCH v3 00/12] ftrfs: Fault-Tolerant Radiation-Robust Filesystem Pedro Falcato
2026-04-14 11:05 ` Joshua Peisach
2026-04-14 11:28 ` Pedro Falcato
2026-04-14 13:46 ` Aurelien DESBRIERES
2026-04-14 12:07 ` [PATCH v3 01/12] ftrfs: add on-disk format and in-memory data structures Aurelien DESBRIERES
2026-04-14 12:07 ` [PATCH v3 02/12] ftrfs: add superblock operations Aurelien DESBRIERES
2026-04-14 12:07 ` [PATCH v3 03/12] ftrfs: add inode operations Aurelien DESBRIERES
2026-04-14 12:07 ` [PATCH v3 04/12] ftrfs: add directory operations Aurelien DESBRIERES
2026-04-14 12:07 ` [PATCH v3 05/12] ftrfs: add file operations Aurelien DESBRIERES
2026-04-14 12:07 ` [PATCH v3 06/12] ftrfs: add block and inode allocator Aurelien DESBRIERES
2026-04-14 12:07 ` [PATCH v3 07/12] ftrfs: add filename and directory entry operations Aurelien DESBRIERES
2026-04-14 12:07 ` [PATCH v3 08/12] ftrfs: add CRC32 checksumming and Reed-Solomon FEC skeleton Aurelien DESBRIERES
2026-04-14 12:07 ` [PATCH v3 09/12] ftrfs: add Kconfig, Makefile and fs/ tree integration Aurelien DESBRIERES
2026-04-14 12:07 ` [PATCH v3 10/12] MAINTAINERS: add entry for FTRFS filesystem Aurelien DESBRIERES
2026-04-14 12:07 ` [PATCH v3 11/12] ftrfs: v2 fixes — write path, inode lifecycle, on-disk format Aurelien DESBRIERES
2026-04-14 12:07 ` [PATCH v3 12/12] ftrfs: v3 — iomap IO path, rename, RS decoder, Radiation Event Journal Aurelien DESBRIERES
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260414120726.5713-1-aurelien@hackers.camp \
--to=aurelien@hackers.camp \
--cc=adilger.kernel@dilger.ca \
--cc=djwong@kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pedro.falcato@gmail.com \
--cc=torvalds@linux-foundation.org \
--cc=willy@infradead.org \
--cc=xiang@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox