diff options
| author | Jared Van Bortel | 2026-02-06 15:16:40 -0500 |
|---|---|---|
| committer | Jakob Unterwurzacher | 2026-02-10 21:26:49 +0100 |
| commit | b024e3696d215e6b7a0b8d17ca3eb28af20dd504 (patch) | |
| tree | afd60d9189530c63e3e7d15e1b59f035914b5293 /internal/fusefrontend | |
| parent | 61685370b1aaffde25e5427a08509d33d71746fe (diff) | |
enable falloc on btrfs if CoW is disabled
Diffstat (limited to 'internal/fusefrontend')
| -rw-r--r-- | internal/fusefrontend/root_node.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/fusefrontend/root_node.go b/internal/fusefrontend/root_node.go index aa26b9c..38d070d 100644 --- a/internal/fusefrontend/root_node.go +++ b/internal/fusefrontend/root_node.go @@ -92,7 +92,9 @@ func NewRootNode(args Args, c *contentenc.ContentEnc, n *nametransform.NameTrans } // Suppress the message if the user has already specified -noprealloc if rn.quirks&syscallcompat.QuirkBtrfsBrokenFalloc != 0 && !args.NoPrealloc { - syscallcompat.LogQuirk("Btrfs detected, forcing -noprealloc. See https://github.com/rfjakob/gocryptfs/issues/395 for why.") + syscallcompat.LogQuirk("Btrfs detected, forcing -noprealloc. " + + "Use \"chattr +C\" on the backing directory to enable NOCOW and allow preallocation. " + + "See https://github.com/rfjakob/gocryptfs/issues/395 for details.") } if statErr == nil { rn.inoMap.TranslateStat(&st) |
