<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gocryptfs/tests/reverse, branch aegis</title>
<subtitle>Mirror of gocryptfs source code on Github</subtitle>
<id>http://nuetzlich.net/cgit/gocryptfs/atom?h=aegis</id>
<link rel='self' href='http://nuetzlich.net/cgit/gocryptfs/atom?h=aegis'/>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/'/>
<updated>2025-01-18T13:46:14+00:00</updated>
<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>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: reverse: add TestForceOwner</title>
<updated>2024-08-23T20:32:41+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2024-08-23T20:27:51+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=1db3808654187b57c8fbb52ab9ef46b7ddf90951'/>
<id>urn:sha1:1db3808654187b57c8fbb52ab9ef46b7ddf90951</id>
<content type='text'>
https://github.com/rfjakob/gocryptfs/issues/809
</content>
</entry>
<entry>
<title>reverse: use incrementing inode number for gocryptfs.longname.*.name files</title>
<updated>2024-05-05T20:46:17+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2024-05-05T20:46:17+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=a38507978442f28ace42ec0003c4a2bf61cb4a91'/>
<id>urn:sha1:a38507978442f28ace42ec0003c4a2bf61cb4a91</id>
<content type='text'>
ed0a12b7337c2d88c027329f64e73070da17d5b3 already fixed the kernel side,
now we also want the .name files to NOT appear hardlinked when just
looking at the inode number.

Relates-to: https://github.com/rfjakob/gocryptfs/issues/802
</content>
</entry>
<entry>
<title>tests: reverse: deduplicate findInum / findIno</title>
<updated>2024-05-05T20:42:47+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2024-05-05T20:42:47+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=bbfbf37bd73f4aac333c7a65f80d5d977a548e20'/>
<id>urn:sha1:bbfbf37bd73f4aac333c7a65f80d5d977a548e20</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tetss: reverse: add TestHardlinkedLongname</title>
<updated>2024-05-01T20:24:24+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2024-05-01T20:24:24+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=210c5c512a7e363d1ada9de2b405463166ec940a'/>
<id>urn:sha1:210c5c512a7e363d1ada9de2b405463166ec940a</id>
<content type='text'>
Regression test for https://github.com/rfjakob/gocryptfs/issues/802 .
Fails at the moment.
</content>
</entry>
<entry>
<title>make format</title>
<updated>2022-12-29T14:00:37+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2022-12-29T14:00:24+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=856ccaac10579abda5620dfc86ad6031b1076a43'/>
<id>urn:sha1:856ccaac10579abda5620dfc86ad6031b1076a43</id>
<content type='text'>
Run "make format" using
go version go1.19.4 linux/amd64
</content>
</entry>
<entry>
<title>tests: improve SEEK_DATA test for MacOS</title>
<updated>2022-01-04T14:21:20+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2022-01-04T14:21:20+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=700ae685cc7cb99b396caeaeee4e39eeac20f1c7'/>
<id>urn:sha1:700ae685cc7cb99b396caeaeee4e39eeac20f1c7</id>
<content type='text'>
(1)

Create a 1 GiB file instead of 1 TiB, because
apparently, on MacOS, the file (sometimes?) is not
created sparse, and fills up users' disks:

https://github.com/rfjakob/gocryptfs/issues/625

(2)

On darwin, SEEK_DATA is not the same as on Linux
( https://github.com/golang/go/commit/2f8b555de27198775f9606e001ef19b76efdb415 )
so use the value provided by the unix package.
</content>
</entry>
<entry>
<title>shell scripts: fix shellcheck warnings</title>
<updated>2021-09-01T08:22:01+00:00</updated>
<author>
<name>a1346054</name>
</author>
<published>2021-08-31T17:01:47+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=c63f7e9f64ee394b3311edb7f36f56fd786d145a'/>
<id>urn:sha1:c63f7e9f64ee394b3311edb7f36f56fd786d145a</id>
<content type='text'>
</content>
</entry>
</feed>
