<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gocryptfs/fsck.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>2026-02-03T19:28:10+00:00</updated>
<entry>
<title>Use user-provided Listxattr buffer size</title>
<updated>2026-02-03T19:28:10+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2026-02-02T21:18:25+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=14045511d3d91f36845a138359718c0fe7dff21c'/>
<id>urn:sha1:14045511d3d91f36845a138359718c0fe7dff21c</id>
<content type='text'>
This huge buffer showed up big time in ./profiling/ls.bash
and caused a 2x LS benchmark slowdown.

Instead of the fixed-size buffer, use the buffer size
hint the user has provided us.

We return inaccurate (larger than actual, which should be safe)
numbers when the user has provided no buffer (size probe).
</content>
</entry>
<entry>
<title>Fix a bunch of staticcheck errors</title>
<updated>2025-07-07T17:59:35+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2025-07-07T17:54:48+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=8f5df19b353e02ffba842fd1b15ccf93da7ee3b4'/>
<id>urn:sha1:8f5df19b353e02ffba842fd1b15ccf93da7ee3b4</id>
<content type='text'>
Tool-assisted.
</content>
</entry>
<entry>
<title>fsck: print "Checking filesystem..."</title>
<updated>2023-09-17T14:38:50+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2023-09-17T14:38:50+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=4ef110f1f3dd6308d88e951aa89dc426d32ad6f1'/>
<id>urn:sha1:4ef110f1f3dd6308d88e951aa89dc426d32ad6f1</id>
<content type='text'>
From https://github.com/rfjakob/gocryptfs/issues/779 / @jroovy

&gt; When using `-fsck`, the command line output looks like this:
&gt;
&gt; ```
&gt; $ gocryptfs -fsck ENCRYPTED_DIRECTORY
&gt; Password:
&gt; Decrypting master key
&gt; ```
&gt;
&gt; However, the user might think it's stuck at decrypting the master
&gt; key. Adding extra text showing that fsck is working would be nice,
&gt; something like:
&gt;
&gt; ```
&gt; $ gocryptfs -fsck ENCRYPTED_DIRECTORY
&gt; Password:
&gt; Decrypting master key
&gt; Checking filesystem...
&gt; ```

Fixes https://github.com/rfjakob/gocryptfs/issues/779
</content>
</entry>
<entry>
<title>go mod: declare module version v2</title>
<updated>2021-08-23T13:05:15+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2021-08-23T13:05:15+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=69d88505fd7f4cb0d9e4f1918de296342fe05858'/>
<id>urn:sha1:69d88505fd7f4cb0d9e4f1918de296342fe05858</id>
<content type='text'>
Our git version is v2+ for some time now, but go.mod
still declared v1. Hopefully making both match makes
https://pkg.go.dev/github.com/rfjakob/gocryptfs/v2 work.

All the import paths have been fixed like this:

  find . -name \*.go | xargs sed -i s%github.com/rfjakob/gocryptfs/%github.com/rfjakob/gocryptfs/v2/%
</content>
</entry>
<entry>
<title>fsck: sort files alphabetically again</title>
<updated>2021-08-19T06:34:49+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2021-08-19T06:22:52+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=f3d927e590c1e9fc3a0ef9402d9c83b972981232'/>
<id>urn:sha1:f3d927e590c1e9fc3a0ef9402d9c83b972981232</id>
<content type='text'>
This makes fsck runs deterministic again.

Sorting (commit quoted below) got lost while
moving to go-fuse v2 api.

commit e6caf56ea4ab10e747aa5dfc0a768cb8176ebe6a
Author: Jakob Unterwurzacher &lt;jakobunt@gmail.com&gt;
Date:   Mon Apr 2 16:56:29 2018 +0200

    fsck: sort files alphabetically

    This makes fsck runs deterministic.
</content>
</entry>
<entry>
<title>fsck: mark temporary mount read-only</title>
<updated>2021-06-02T17:32:20+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2021-06-02T17:32:20+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=8f2be5d93cda2696fce7bc1a3f8a888a19321f09'/>
<id>urn:sha1:8f2be5d93cda2696fce7bc1a3f8a888a19321f09</id>
<content type='text'>
We don't write during fsck, but somebody else might try
to.
</content>
</entry>
<entry>
<title>fsck: clean up temporary mountpoint</title>
<updated>2021-06-02T17:31:55+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2021-06-02T17:28:20+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=307dfd7f71ee1d72113e2194e9b26a53b9a36c46'/>
<id>urn:sha1:307dfd7f71ee1d72113e2194e9b26a53b9a36c46</id>
<content type='text'>
We used to leave directories like

  /tmp/gocryptfs.fsck.104431245

behind. Let's clean up after ourselves.
</content>
</entry>
<entry>
<title>fsck: redirect go-fuse noise to syslog</title>
<updated>2021-05-18T16:38:23+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2021-05-18T16:38:23+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=0650a512bbf5a49031d47afac538a92e0994757a'/>
<id>urn:sha1:0650a512bbf5a49031d47afac538a92e0994757a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fsck: make sure we unmount in all cases</title>
<updated>2020-10-17T21:03:58+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2020-10-17T21:03:58+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=95ea7383f9aeef83e6ce7a06d49d0f24857ef30a'/>
<id>urn:sha1:95ea7383f9aeef83e6ce7a06d49d0f24857ef30a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>v2api: fsck: use a temporary mount</title>
<updated>2020-07-19T21:03:47+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2020-07-19T21:03:47+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=8915785acf7e6e7908b32103406620f243093931'/>
<id>urn:sha1:8915785acf7e6e7908b32103406620f243093931</id>
<content type='text'>
Directly accessing the Nodes does not work properly,
as there is no way to attach a newly LOOKUPped Node
to the tree. This means Path() does not work.

Use an actual mount instead and walk the tree.
</content>
</entry>
</feed>
