<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gocryptfs/tests, branch xattr_user_buffer</title>
<subtitle>Mirror of gocryptfs source code on Github</subtitle>
<id>http://nuetzlich.net/cgit/gocryptfs/atom?h=xattr_user_buffer</id>
<link rel='self' href='http://nuetzlich.net/cgit/gocryptfs/atom?h=xattr_user_buffer'/>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/'/>
<updated>2026-02-01T19:05:13+00:00</updated>
<entry>
<title>syscallcompat: DetectQuirks: suppress Btrfs message when -noprealloc has been passed</title>
<updated>2026-02-01T19:05:13+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2026-02-01T19:05:13+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=ed5f8487b15f1d9cd83b4b0a4220271b6c5f189e'/>
<id>urn:sha1:ed5f8487b15f1d9cd83b4b0a4220271b6c5f189e</id>
<content type='text'>
Reported by @Tunoac, https://github.com/rfjakob/gocryptfs/issues/395#issuecomment-3828507487
</content>
</entry>
<entry>
<title>Drop deprecated rand.Seed calls</title>
<updated>2025-12-14T10:39:31+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2025-12-14T10:38:45+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=745276fe6e2b81570e5c84625699d632da5fd6a9'/>
<id>urn:sha1:745276fe6e2b81570e5c84625699d632da5fd6a9</id>
<content type='text'>
$ staticcheck --version
staticcheck 2025.1.1 (0.6.1)

$ staticcheck ./...
contrib/findholes/holes/holes.go:179:2: rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: As of Go 1.20 there is no reason to call Seed with a random value. Programs that call Seed with a known value to get a specific sequence of results should use New(NewSource(seed)) to obtain a local random generator. (SA1019)
tests/defaults/acl_test.go:24:2: rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: As of Go 1.20 there is no reason to call Seed with a random value. Programs that call Seed with a known value to get a specific sequence of results should use New(NewSource(seed)) to obtain a local random generator. (SA1019)
tests/plaintextnames/file_holes_test.go:143:2: rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: As of Go 1.20 there is no reason to call Seed with a random value. Programs that call Seed with a known value to get a specific sequence of results should use New(NewSource(seed)) to obtain a local random generator. (SA1019)
</content>
</entry>
<entry>
<title>quirks: drop tmpfs xattr quirk</title>
<updated>2025-11-29T21:01:03+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2025-11-29T21:01:03+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=4c6d3926008347d5034bdbade8077890425a55ec'/>
<id>urn:sha1:4c6d3926008347d5034bdbade8077890425a55ec</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>reverse: fix TestXattrList failure</title>
<updated>2025-11-22T20:51:27+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2025-11-22T20:44:51+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=75247e14612d2e71311aeeb7060ea704c96c3154'/>
<id>urn:sha1:75247e14612d2e71311aeeb7060ea704c96c3154</id>
<content type='text'>
On my Fedora I used to get this failure:

	--- FAIL: TestXattrList (0.00s)
	    xattr_test.go:52: wrong number of names, want=20 have=21
	    xattr_test.go:58: mismatch on attr "security.selinux": valA = "", valC = "xxxxxxxxyyyyyyyyyyyyyyyzzzzzzzzzzzzz"

First step is to print the actual value using xattr.LGet.
This improves the error message to this:

	--- FAIL: TestXattrList (0.00s)
	    xattr_test.go:53: wrong number of names, want=20 have=21
	    xattr_test.go:59: mismatch on attr "security.selinux": valA = "", valC = "system_u:object_r:fusefs_t:s0\x00"

2nd step is to ignore "security." attribs as we have no control
over them.
</content>
</entry>
<entry>
<title>Xattrs support in reverse mode</title>
<updated>2025-11-22T20:24:20+00:00</updated>
<author>
<name>Aleksey Vasenev</name>
</author>
<published>2024-11-17T20:14:36+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=ed1c5e4a9f5ce1921f3ec03b32e591ce828ec5b9'/>
<id>urn:sha1:ed1c5e4a9f5ce1921f3ec03b32e591ce828ec5b9</id>
<content type='text'>
Fixes https://github.com/rfjakob/gocryptfs/issues/827
</content>
</entry>
<entry>
<title>tests: matrix: add Test555Dir</title>
<updated>2025-10-02T19:42:39+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2025-10-02T19:33:43+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=6651f9a761f15d5d9b1be15d47dadbe4bb424665'/>
<id>urn:sha1:6651f9a761f15d5d9b1be15d47dadbe4bb424665</id>
<content type='text'>
--- FAIL: Test555Dir (0.00s)
    dir_test.go:90: wrong mode. want 0555 have 0755
FAIL
TestMain: matrix[0] = matrix.testcaseMatrix{plaintextnames:false, openssl:"auto", aessiv:false, raw64:false, extraArgs:[]string(nil)} failed
FAIL	github.com/rfjakob/gocryptfs/v2/tests/matrix	2.109s

https://github.com/rfjakob/gocryptfs/issues/964
</content>
</entry>
<entry>
<title>tests: matrix: use unique ctlsock path</title>
<updated>2025-08-07T21:36:42+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2025-08-07T21:35:35+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=8d90c5e3d5cba48a097aadf9beba61c7a2301d85'/>
<id>urn:sha1:8d90c5e3d5cba48a097aadf9beba61c7a2301d85</id>
<content type='text'>
Because the deletion happens asynchronously, a
previous iteration can delete the socket of the
next one.
</content>
</entry>
<entry>
<title>tests: matrix: add TestRenameExchangeOnGocryptfs</title>
<updated>2025-08-07T21:06:03+00:00</updated>
<author>
<name>rafjaf</name>
</author>
<published>2025-07-23T17:14:47+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=21d41feaa52b7a2ebcf0f683ba314235a5186620'/>
<id>urn:sha1:21d41feaa52b7a2ebcf0f683ba314235a5186620</id>
<content type='text'>
Added testing for RENAME_EXCHANGE

https://github.com/rfjakob/gocryptfs/issues/914
</content>
</entry>
<entry>
<title>tests: matrix: add TestDirSize</title>
<updated>2025-08-03T19:25:24+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2025-08-03T19:05:47+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=528834aa89b4645f7a31ec45e7c474026a4f1dce'/>
<id>urn:sha1:528834aa89b4645f7a31ec45e7c474026a4f1dce</id>
<content type='text'>
Fails at the moment, as expected:

=== RUN   TestDirSize
    matrix_test.go:938: stat size is different from fstat size: pStat=80 pFstat=30
    matrix_test.go:941: fstat size is different: pSt=30 cSt=80
    matrix_test.go:938: stat size is different from fstat size: pStat=100 pFstat=50
    matrix_test.go:941: fstat size is different: pSt=50 cSt=100
    matrix_test.go:938: stat size is different from fstat size: pStat=120 pFstat=70
    matrix_test.go:941: fstat size is different: pSt=70 cSt=120
    matrix_test.go:938: stat size is different from fstat size: pStat=140 pFstat=90
    matrix_test.go:941: fstat size is different: pSt=90 cSt=140
    matrix_test.go:938: stat size is different from fstat size: pStat=160 pFstat=110
    matrix_test.go:941: fstat size is different: pSt=110 cSt=160

https://github.com/rfjakob/gocryptfs/issues/951
</content>
</entry>
<entry>
<title>tests: matrix: enable ctlsock</title>
<updated>2025-08-03T19:25:24+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2025-08-03T19:05:32+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=ca83d1dcdc305418b0a0baa297a340cf702a60fc'/>
<id>urn:sha1:ca83d1dcdc305418b0a0baa297a340cf702a60fc</id>
<content type='text'>
</content>
</entry>
</feed>
