aboutsummaryrefslogtreecommitdiff
path: root/internal/syscallcompat/quirks.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2026-02-01 20:05:13 +0100
committerJakob Unterwurzacher2026-02-01 20:05:13 +0100
commited5f8487b15f1d9cd83b4b0a4220271b6c5f189e (patch)
tree57934e7c337865e37aa5e12434d637315d293b21 /internal/syscallcompat/quirks.go
parent5ac1a51acdcc8626d536e324b1e03e2b8554ba50 (diff)
syscallcompat: DetectQuirks: suppress Btrfs message when -noprealloc has been passed
Reported by @Tunoac, https://github.com/rfjakob/gocryptfs/issues/395#issuecomment-3828507487
Diffstat (limited to 'internal/syscallcompat/quirks.go')
-rw-r--r--internal/syscallcompat/quirks.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/internal/syscallcompat/quirks.go b/internal/syscallcompat/quirks.go
index e30d605..36bcb9f 100644
--- a/internal/syscallcompat/quirks.go
+++ b/internal/syscallcompat/quirks.go
@@ -5,16 +5,17 @@ import (
)
const (
- // QuirkBrokenFalloc means the falloc is broken.
+ // QuirkBtrfsBrokenFalloc means the falloc is broken.
// Preallocation on Btrfs is broken ( https://github.com/rfjakob/gocryptfs/issues/395 )
// and slow ( https://github.com/rfjakob/gocryptfs/issues/63 ).
- QuirkBrokenFalloc = uint64(1 << iota)
+ QuirkBtrfsBrokenFalloc = uint64(1 << iota)
// QuirkDuplicateIno1 means that we have duplicate inode numbers.
// On MacOS ExFAT, all empty files share inode number 1:
// https://github.com/rfjakob/gocryptfs/issues/585
QuirkDuplicateIno1
)
-func logQuirk(s string) {
+// LogQuirk prints a yellow message about a detected quirk.
+func LogQuirk(s string) {
tlog.Info.Println(tlog.ColorYellow + "DetectQuirks: " + s + tlog.ColorReset)
}