aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2025-11-29 22:01:03 +0100
committerJakob Unterwurzacher2025-11-29 22:01:03 +0100
commit4c6d3926008347d5034bdbade8077890425a55ec (patch)
tree6dcc281b8c81398c4b40962eaf9c3e484a35b6c3
parent75247e14612d2e71311aeeb7060ea704c96c3154 (diff)
quirks: drop tmpfs xattr quirk
tmpfs supports user xattrs since Linux 6.6 (anno 2023): https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2daf18a7884dc03d5164ab9c7dc3f2ea70638469
-rw-r--r--internal/syscallcompat/quirks.go2
-rw-r--r--internal/syscallcompat/quirks_linux.go4
-rw-r--r--tests/root_test/root_test.go3
3 files changed, 0 insertions, 9 deletions
diff --git a/internal/syscallcompat/quirks.go b/internal/syscallcompat/quirks.go
index 858f16d..110c00d 100644
--- a/internal/syscallcompat/quirks.go
+++ b/internal/syscallcompat/quirks.go
@@ -13,8 +13,6 @@ const (
// On MacOS ExFAT, all empty files share inode number 1:
// https://github.com/rfjakob/gocryptfs/issues/585
QuirkDuplicateIno1
- // QuirkNoUserXattr means that user.* xattrs are not supported
- QuirkNoUserXattr
)
func logQuirk(s string) {
diff --git a/internal/syscallcompat/quirks_linux.go b/internal/syscallcompat/quirks_linux.go
index 5ef2d8a..bcdcf07 100644
--- a/internal/syscallcompat/quirks_linux.go
+++ b/internal/syscallcompat/quirks_linux.go
@@ -27,9 +27,5 @@ func DetectQuirks(cipherdir string) (q uint64) {
q |= QuirkBrokenFalloc
}
- if uint32(st.Type) == unix.TMPFS_MAGIC {
- logQuirk("tmpfs detected, no extended attributes except acls will work.")
- }
-
return q
}
diff --git a/tests/root_test/root_test.go b/tests/root_test/root_test.go
index c531ebb..650d802 100644
--- a/tests/root_test/root_test.go
+++ b/tests/root_test/root_test.go
@@ -305,9 +305,6 @@ func TestOverlay(t *testing.T) {
t.Skip("must run as root")
}
cDir := test_helpers.InitFS(t)
- if syscallcompat.DetectQuirks(cDir)&syscallcompat.QuirkNoUserXattr != 0 {
- t.Logf("No user xattrs! overlay mount will likely fail.")
- }
os.Chmod(cDir, 0755)
pDir := cDir + ".mnt"
test_helpers.MountOrFatal(t, cDir, pDir, "-allow_other", "-extpass=echo test")