aboutsummaryrefslogtreecommitdiff
path: root/internal/configfile/config_test
diff options
context:
space:
mode:
authorJakob Unterwurzacher2026-11-19 20:48:16 +0100
committerJakob Unterwurzacher2026-11-19 21:16:01 +0100
commit674559a0be5f76002eae1639286f2ad89b4d4414 (patch)
tree904c6501d6eaf85d33a10c82a641850c366e53de /internal/configfile/config_test
parent4673301f2f1a08b3179b482deaa50f2a2a464753 (diff)
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 <noreply@anthropic.com>
Diffstat (limited to 'internal/configfile/config_test')
0 files changed, 0 insertions, 0 deletions