<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gocryptfs/tests/test_helpers/mount_unmount.go, 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>2025-07-08T17:54:14+00:00</updated>
<entry>
<title>Fix all staticcheck errors in gocryptfs codebase</title>
<updated>2025-07-08T17:54:14+00:00</updated>
<author>
<name>copilot-swe-agent[bot]</name>
</author>
<published>2025-07-07T18:18:12+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=386232f39ede046d6453a0990ad40f2d86a26f53'/>
<id>urn:sha1:386232f39ede046d6453a0990ad40f2d86a26f53</id>
<content type='text'>
Co-authored-by: rfjakob &lt;286847+rfjakob@users.noreply.github.com&gt;

Add staticcheck to test.bash for continuous static analysis

Co-authored-by: rfjakob &lt;286847+rfjakob@users.noreply.github.com&gt;

Fix nil pointer dereference in timesToTimespec function

The previous fix for deprecated fuse.UtimeToTimespec caused a panic
because unix.TimeToTimespec doesn't handle nil pointers. This fix
properly handles nil pointers by using unix.UTIME_OMIT while still
using the non-deprecated unix.TimeToTimespec function.

Co-authored-by: rfjakob &lt;286847+rfjakob@users.noreply.github.com&gt;

Undo SA6002 changes and add staticcheck ignore directive instead

Co-authored-by: rfjakob &lt;286847+rfjakob@users.noreply.github.com&gt;
</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>tests: enable -fusedebug if FUSEDEBUG env is set</title>
<updated>2022-01-22T10:46:08+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2022-01-22T10:46:08+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=3ca2b1983dbab14e3769efd126098cbca6fb2ffd'/>
<id>urn:sha1:3ca2b1983dbab14e3769efd126098cbca6fb2ffd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: MountOrFatal creates mnt dir itself</title>
<updated>2021-03-20T09:33:34+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2021-03-20T09:33:34+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=255a71c9179b9ad32587b20c41f81dc0b8cc3f44'/>
<id>urn:sha1:255a71c9179b9ad32587b20c41f81dc0b8cc3f44</id>
<content type='text'>
Allows to drop a few Mkdir()s.
</content>
</entry>
<entry>
<title>test_helpers: mark MountOrFatal as a Helper()</title>
<updated>2020-09-09T09:15:54+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2020-09-09T09:15:54+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=7c0363dee5966c2cf8751cc449d19a3b5422242a'/>
<id>urn:sha1:7c0363dee5966c2cf8751cc449d19a3b5422242a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dircache: increase cache size &amp; lifetime</title>
<updated>2020-05-17T19:37:36+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2020-05-17T19:37:36+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=f8ad2ac3e252108ccfedd115eb3009a5a7d77106'/>
<id>urn:sha1:f8ad2ac3e252108ccfedd115eb3009a5a7d77106</id>
<content type='text'>
Looking at the dircache debug output, we see
that a "git status" workload has a very bad
cache hit rate because the entries expire or
get evicted before they can be reused.

Increase both cache size and lifetime for
a 4x speedup:

Before: 75s
After:  17s

https://github.com/rfjakob/gocryptfs/issues/410
</content>
</entry>
<entry>
<title>Fix spelling mistakes found by misspell</title>
<updated>2020-05-09T22:25:49+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2020-05-09T22:25:49+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=ead7008a08f9ace4591ebbc03e63fdc7ef37e502'/>
<id>urn:sha1:ead7008a08f9ace4591ebbc03e63fdc7ef37e502</id>
<content type='text'>
https://github.com/client9/misspell
</content>
</entry>
<entry>
<title>test_helper: kill lsof after 1 second</title>
<updated>2020-05-09T17:03:16+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2020-05-09T17:03:16+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=f0184804f4e9f878c560648cc9b773f84d6a2c53'/>
<id>urn:sha1:f0184804f4e9f878c560648cc9b773f84d6a2c53</id>
<content type='text'>
lsof may get stuck when gocryptfs itself is stuck.
</content>
</entry>
<entry>
<title>tests: filter leaked fds by prefix</title>
<updated>2019-10-06T17:37:51+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2019-10-06T17:04:16+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=1fb18f4a9ef2bbbc6e7c774fa064808a3952bb3f'/>
<id>urn:sha1:1fb18f4a9ef2bbbc6e7c774fa064808a3952bb3f</id>
<content type='text'>
When running

  $ go test ./tests/matrix/

in isolation, it failed like this:

  fd leak? before, after:
  [0r=/dev/null 3w=/dev/null 5r=/proc/8078/fd (hidden:4)]
  [0r=/dev/null 3w=/dev/null 5w=/tmp/go-build366655199/b001/testlog.txt 7r=/proc/8078/fd (hidden:4)]

Filter by prefix to get rid of this spurious test failure.
</content>
</entry>
<entry>
<title>tests: clarify which process seems to be leaking fds</title>
<updated>2019-10-06T16:48:09+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2019-10-06T16:48:09+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=d361f6e35bb97ef8f060131ea5b29f922e613c49'/>
<id>urn:sha1:d361f6e35bb97ef8f060131ea5b29f922e613c49</id>
<content type='text'>
The tests check if they leak fds themselves, but we also
check if gocryptfs leaks fds. Clarify what is what in the
error message.
</content>
</entry>
</feed>
