From: Aurelien DESBRIERES <aurelien@hackers.camp>
To: linux-fsdevel@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, viro@zeniv.linux.org.uk,
brauner@kernel.org, aurelien@hackers.camp
Subject: [RFC PATCH 0/10] ftrfs: Fault-Tolerant Radiation-Robust Filesystem
Date: Mon, 13 Apr 2026 16:23:46 +0200 [thread overview]
Message-ID: <20260413142357.515792-1-aurelien@hackers.camp> (raw)
From: Aurélien DESBRIERES <aurelien@hackers.camp>
This RFC introduces FTRFS, a new Linux filesystem designed for dependable
storage in radiation-intensive environments, targeting embedded Linux systems
operating in space or other harsh conditions.
FTRFS was originally described in:
Fuchs, C.M., Langer, M., Trinitis, C. (2015).
FTRFS: A Fault-Tolerant Radiation-Robust Filesystem for Space Use.
ARCS 2015, LNCS vol 9017, Springer.
https://doi.org/10.1007/978-3-319-16086-3_8
This implementation is an independent open-source realization of the
concepts described in that paper, developed for the Linux kernel.
== Design ==
FTRFS provides three layers of data integrity:
- CRC32 per block and per inode (hardware-accelerated via crc32_le)
- Reed-Solomon FEC (encoder implemented, decoder planned)
- EDAC-compatible error tracking
On-disk layout:
Block 0 : superblock (magic 0x46545246, CRC32-protected)
Block 1..N : inode table (128 bytes/inode, CRC32 per inode)
Block N+1..end : data blocks (CRC32 + RS FEC per block)
Inodes use direct addressing (12 direct block pointers) plus single
and double indirection. Directory entries are fixed-size (268 bytes)
stored in direct blocks.
== Current Status ==
- Superblock: mount/umount, CRC32 validation [done]
- Inodes: read with CRC32 verification [done]
- Directories: readdir, lookup [done]
- Files: read via generic page cache helpers [done]
- Allocator: in-memory bitmap for blocks and inodes [done]
- Write path: create, mkdir, unlink, rmdir, link [done]
- Reed-Solomon: encoder done, decoder planned [partial]
- xattrs / SELinux [planned]
- fsck.ftrfs [planned]
- Indirect block support for large files [planned]
== Validation ==
FTRFS has been validated on arm64 (cortex-a57) running Linux 7.0-rc7,
built with Yocto Styhead (5.1), deployed as a data partition in a
3-node Slurm HPC cluster on KVM/QEMU:
insmod ftrfs.ko -> module loaded
mount -t ftrfs /dev/vdb /mnt -> success
ls /mnt -> returns empty directory correctly
Compile-tested on x86_64 with Linux 7.0 (this series).
checkpatch.pl: 0 errors on all patches.
== Feedback Requested ==
This is an RFC. Feedback is welcome on:
1. On-disk format: is the superblock/inode layout reasonable?
2. Directory entry design: fixed 268-byte entries vs. variable length
3. Reed-Solomon: use lib/reed_solomon or keep custom GF(2^8) tables?
4. Allocator: in-memory bitmap vs. dedicated on-disk bitmap block
5. Any VFS API misuse or missing locking
The code is also available at:
https://github.com/roastercode/FTRFS
Aurélien DESBRIERES (10):
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
MAINTAINERS | 6 +
fs/Kconfig | 1 +
fs/Makefile | 1 +
fs/ftrfs/Kconfig | 49 +++
fs/ftrfs/Makefile | 16 +
fs/ftrfs/alloc.c | 251 +++++++++++++++
fs/ftrfs/dir.c | 132 ++++++++
fs/ftrfs/edac.c | 84 +++++
fs/ftrfs/file.c | 25 ++
fs/ftrfs/ftrfs.h | 168 ++++++++++
fs/ftrfs/inode.c | 103 +++++++
fs/ftrfs/namei.c | 428 +++++++++++++++++++++++++++
fs/ftrfs/super.c | 274 ++++++++++++++++
13 files changed, 1538 insertions(+)
Signed-off-by: Aurélien DESBRIERES <aurelien@hackers.camp>
next reply other threads:[~2026-04-13 12:24 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-13 14:23 Aurelien DESBRIERES [this message]
2026-04-13 14:23 ` [RFC PATCH 01/10] ftrfs: add on-disk format and in-memory data structures Aurelien DESBRIERES
2026-04-13 15:11 ` Darrick J. Wong
2026-04-13 17:26 ` Aurelien DESBRIERES
2026-04-13 14:23 ` [RFC PATCH 02/10] ftrfs: add superblock operations Aurelien DESBRIERES
2026-04-13 14:23 ` [RFC PATCH 03/10] ftrfs: add inode operations Aurelien DESBRIERES
2026-04-13 14:23 ` [RFC PATCH 04/10] ftrfs: add directory operations Aurelien DESBRIERES
2026-04-13 14:23 ` [RFC PATCH 05/10] ftrfs: add file operations Aurelien DESBRIERES
2026-04-13 15:09 ` Matthew Wilcox
[not found] ` <CAM=40tU5NppEZ9x07qDVkSxLw6Ga4nVg7sDCqcvhfQ51VbsS9Q@mail.gmail.com>
2026-04-13 17:41 ` Matthew Wilcox
2026-04-13 14:23 ` [RFC PATCH 06/10] ftrfs: add block and inode allocator Aurelien DESBRIERES
2026-04-13 15:21 ` Darrick J. Wong
2026-04-14 14:11 ` Aurelien DESBRIERES
2026-04-13 14:23 ` [RFC PATCH 07/10] ftrfs: add filename and directory entry operations Aurelien DESBRIERES
2026-04-13 14:23 ` [RFC PATCH 08/10] ftrfs: add CRC32 checksumming and Reed-Solomon FEC skeleton Aurelien DESBRIERES
2026-04-13 14:23 ` [RFC PATCH 09/10] ftrfs: add Kconfig, Makefile and fs/ tree integration Aurelien DESBRIERES
2026-04-13 14:23 ` [RFC PATCH 10/10] MAINTAINERS: add entry for FTRFS filesystem Aurelien DESBRIERES
2026-04-13 15:04 ` [RFC PATCH 0/10] ftrfs: Fault-Tolerant Radiation-Robust Filesystem Pedro Falcato
2026-04-13 18:03 ` Andreas Dilger
2026-04-14 2:56 ` Gao Xiang
2026-04-14 14:11 ` Aurelien DESBRIERES
2026-04-14 13:30 ` Aurelien DESBRIERES
2026-04-13 15:06 ` Matthew Wilcox
2026-04-13 18:11 ` Darrick J. Wong
2026-04-14 14:11 ` Aurelien DESBRIERES
2026-04-14 13:31 ` 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=20260413142357.515792-1-aurelien@hackers.camp \
--to=aurelien@hackers.camp \
--cc=brauner@kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/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