From 674559a0be5f76002eae1639286f2ad89b4d4414 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Thu, 19 Nov 2026 20:48:16 +0100 Subject: fsck: check the filesystem without mounting it via FUSE Instead of mounting CIPHERDIR on a temporary mountpoint and reading everything through the kernel, call the fusefrontend node and file operations directly. fs.NewNodeFS() initializes the root inode, which the node operations need, but nothing is mounted. Children returned by Lookup() are attached with AddChild() so the node operations can resolve their backing paths, and dropped again with RmChild() once checked to keep memory usage bounded. Side effects: * Files whose ciphertext is shorter than the header (plaintext size 0) are now read and reported as corrupt. The kernel never sent READ for them, so they were missed before (broken_fs_v1.4: 15 instead of 12 corrupt files). * -quiet no longer redirects logging to syslog; that was only needed to hide go-fuse messages. Fixes: https://github.com/rfjakob/gocryptfs/issues/985 Co-Authored-By: Claude Opus 5.5 --- README.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index e5335cc..3942967 100644 --- a/README.md +++ b/README.md @@ -204,6 +204,10 @@ RM: 2,367 Changelog --------- +#### vNEXT +* `-fsck` does not use a temporary FUSE mount anymore + ([#985](https://github.com/rfjakob/gocryptfs/issues/985)) + #### v2.7.0, 2026-11-11 * `-sharedstorage`: use byte-range locks to make concurrent access from multiple mounts safe ([#754](https://github.com/rfjakob/gocryptfs/issues/754), -- cgit v1.2.3