<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gocryptfs/tests, branch v2.5.1</title>
<subtitle>Mirror of gocryptfs source code on Github</subtitle>
<id>http://nuetzlich.net/cgit/gocryptfs/atom?h=v2.5.1</id>
<link rel='self' href='http://nuetzlich.net/cgit/gocryptfs/atom?h=v2.5.1'/>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/'/>
<updated>2025-01-23T21:17:51+00:00</updated>
<entry>
<title>tests: add issue893.sh, a reproducer for #893 "mariadb crashing since 2.5.0"</title>
<updated>2025-01-23T21:17:51+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2025-01-23T21:16:29+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=00d4d91048fd6ae3017ced1f3937357c14e8e548'/>
<id>urn:sha1:00d4d91048fd6ae3017ced1f3937357c14e8e548</id>
<content type='text'>
https://github.com/rfjakob/gocryptfs/issues/893
</content>
</entry>
<entry>
<title>tests: reverse: TestMtimePlus10: fix darwin build</title>
<updated>2025-01-18T13:46:14+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2025-01-18T13:46:14+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=a0105e65cde9f4643a896770a9629da644613a8a'/>
<id>urn:sha1:a0105e65cde9f4643a896770a9629da644613a8a</id>
<content type='text'>
Darwin does not have Stat_t.mtim:

+ go test -c -tags without_openssl -o /dev/null github.com/rfjakob/gocryptfs/v2/tests/reverse
Error: tests/reverse/correctness_test.go:407:15: name_stat.Mtim undefined (type syscall.Stat_t has no field or method Mtim)
Error: tests/reverse/correctness_test.go:407:37: long_stat.Mtim undefined (type syscall.Stat_t has no field or method Mtim)
Error: tests/reverse/correctness_test.go:410:15: name_stat.Ctim undefined (type syscall.Stat_t has no field or method Ctim)
Error: tests/reverse/correctness_test.go:410:37: long_stat.Ctim undefined (type syscall.Stat_t has no field or method Ctim)
Error: tests/reverse/correctness_test.go:424:16: diriv_stat.Mtim undefined (type syscall.Stat_t has no field or method Mtim)
Error: tests/reverse/correctness_test.go:424:42: workdirA_stat.Mtim undefined (type syscall.Stat_t has no field or method Mtim)
Error: tests/reverse/correctness_test.go:427:16: diriv_stat.Ctim undefined (type syscall.Stat_t has no field or method Ctim)
Error: tests/reverse/correctness_test.go:427:42: workdirA_stat.Ctim undefined (type syscall.Stat_t has no field or method Ctim)

Switch to os.Stat.
</content>
</entry>
<entry>
<title>tests: skip TestFileHoleCopy for now</title>
<updated>2025-01-18T13:27:27+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2025-01-18T13:27:27+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=38936cba4e319525875feaa5d44b85819692e056'/>
<id>urn:sha1:38936cba4e319525875feaa5d44b85819692e056</id>
<content type='text'>
This problem potentially causes extra disk usage for sparse files
but is otherwise harmless.

Skip the test for now.
</content>
</entry>
<entry>
<title>reverse: advance mtime &amp; ctime for virtual files by 10 seconds</title>
<updated>2025-01-18T13:13:52+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2025-01-18T13:11:51+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=9eb47cf546d7e2499eab210d70050ef78087475a'/>
<id>urn:sha1:9eb47cf546d7e2499eab210d70050ef78087475a</id>
<content type='text'>
With inode number reuse and hard links, we could have returned
wrong data for gocryptfs.diriv and gocryptfs.xyz.longname files, respectively
(https://github.com/rfjakob/gocryptfs/issues/802).

Now that this is fixed, ensure that rsync and similar tools pick up the new
correct files by advancing mtime and ctime by 10 seconds, which should be more
than any filesytems' timestamp granularity (FAT32 has 2 seconds).
</content>
</entry>
<entry>
<title>tests: reverse: factor out newWorkdir</title>
<updated>2025-01-18T13:13:52+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2025-01-18T12:56:51+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=c19f986ba09e675a5139b12bcf2687495f2533dd'/>
<id>urn:sha1:c19f986ba09e675a5139b12bcf2687495f2533dd</id>
<content type='text'>
Will be used in a new test in the next commit.
</content>
</entry>
<entry>
<title>tests: ignore pidfd in fd leak test</title>
<updated>2024-12-04T18:51:33+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2024-12-04T18:51:33+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=9529f5da0f608c7dbc7b7be095d89039d6a3a5b6'/>
<id>urn:sha1:9529f5da0f608c7dbc7b7be095d89039d6a3a5b6</id>
<content type='text'>
This is not a real leak:

  fd leak in test process? before, after:
  [0r=/dev/null 3r=/proc/940141/fd 5rw=anon_inode:[eventfd] (filtered: pipe:[2454797], pipe:[2454797], anon_inode:[eventpoll])]
  [0r=/dev/null 3r=/proc/940141/fd 5rw=anon_inode:[eventfd] 12rw=anon_inode:[pidfd] (filtered: pipe:[2454797], pipe:[2454797], anon_inode:[eventpoll], pipe:[2460158])]

Ignore pidfd.
</content>
</entry>
<entry>
<title>gocryptfs -passwd: fix the tests I just broke</title>
<updated>2024-12-04T18:47:43+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2024-12-04T18:47:43+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=82dac42e85f01b1ea3383470350aa837a19f0ac3'/>
<id>urn:sha1:82dac42e85f01b1ea3383470350aa837a19f0ac3</id>
<content type='text'>
Turns out at least the tests depended on the old
behavoir.

Fixes d5bd98eb3f4cbfb8dd9d0b2eb64dbff69c3c88b1
</content>
</entry>
<entry>
<title>Report inode number for the root node</title>
<updated>2024-11-11T21:33:07+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2024-11-11T21:27:42+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=86891054ef2a5d1b0b59c7c140aae284e7c5bd87'/>
<id>urn:sha1:86891054ef2a5d1b0b59c7c140aae284e7c5bd87</id>
<content type='text'>
Now that https://github.com/hanwen/go-fuse/issues/399 has
landed we can report an inode number for the root node.

Fixes https://github.com/rfjakob/gocryptfs/issues/580
</content>
</entry>
<entry>
<title>dl-linux-tarball.bash: drop wget's "--no-progress" flag</title>
<updated>2024-09-19T12:13:41+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2024-09-19T12:13:41+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=2ccea57eba6a646838b39e3bbaec06d247250cbb'/>
<id>urn:sha1:2ccea57eba6a646838b39e3bbaec06d247250cbb</id>
<content type='text'>
Looks like wget does not support it anymore
$ wget --version
GNU Wget2 2.1.0 - multithreaded metalink/file/website downloader

$ ./benchmark.bash
Testing gocryptfs   at /tmp/benchmark.bash.bmt: gocryptfs v2.4.0-38-g40abf96-dirty; go-fuse v2.5.0; 2024-09-03 go1.21.4 linux/amd64
/tmp/benchmark.bash.bmt.mnt is a mountpoint
Downloading linux-3.0.tar.gz
Unknown option 'show-progress'
</content>
</entry>
<entry>
<title>ctlsock: delete colliding orphaned socket file</title>
<updated>2024-09-03T14:01:46+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2024-09-03T14:00:24+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=2c01b1ab3774ace723b2700fc539dda5f0350633'/>
<id>urn:sha1:2c01b1ab3774ace723b2700fc539dda5f0350633</id>
<content type='text'>
Detect and delete an orphaned socket file that collides with
the ctlsock we want to create.

Fixes https://github.com/rfjakob/gocryptfs/issues/776
</content>
</entry>
</feed>
