libgocryptfs/tests/example_filesystems
Jakob Unterwurzacher 4da245c69d fusefrontend_reverse: fix 176-byte names
A file with a name of exactly 176 bytes length caused this error:

  ls: cannot access ./tmp/dsg/sXSGJLTuZuW1FarwIkJs0w/b6mGjdxIRpaeanTo0rbh0A/QjMRrQZC_4WLhmHI1UOBcA/gocryptfs.longname.QV-UipdDXeUVdl05WruoEzBNPrQCfpu6OzJL0_QnDKY: No such file or directory
  ls: cannot access ./tmp/dsg/sXSGJLTuZuW1FarwIkJs0w/b6mGjdxIRpaeanTo0rbh0A/QjMRrQZC_4WLhmHI1UOBcA/gocryptfs.longname.QV-UipdDXeUVdl05WruoEzBNPrQCfpu6OzJL0_QnDKY.name: No such file or directory
  -????????? ? ?     ?             ?            ? gocryptfs.longname.QV-UipdDXeUVdl05WruoEzBNPrQCfpu6OzJL0_QnDKY
  -????????? ? ?     ?             ?            ? gocryptfs.longname.QV-UipdDXeUVdl05WruoEzBNPrQCfpu6OzJL0_QnDKY.name

Root cause was a wrong shortNameMax constant that failed to
account for the obligatory padding byte.

Fix the constant and also expand the TestLongnameStat test case
to test ALL file name lengths from 1-255 bytes.

Fixes https://github.com/rfjakob/gocryptfs/issues/143 .
2017-10-01 13:50:25 +02:00
..
content tests: add v1.1-aessiv example filesystem 2016-10-08 21:45:01 +02:00
v0.4 tests: split example_filesystems into its own package 2016-06-07 00:08:56 +02:00
v0.5 tests: split example_filesystems into its own package 2016-06-07 00:08:56 +02:00
v0.6 tests: split example_filesystems into its own package 2016-06-07 00:08:56 +02:00
v0.6-plaintextnames tests: split example_filesystems into its own package 2016-06-07 00:08:56 +02:00
v0.7 tests: split example_filesystems into its own package 2016-06-07 00:08:56 +02:00
v0.7-plaintextnames tests: add v0.7-plaintextnames example filesystem 2016-06-23 20:53:14 +02:00
v0.9 tests: split example_filesystems into its own package 2016-06-07 00:08:56 +02:00
v1.1-aessiv tests: add v1.1-aessiv example filesystem 2016-10-08 21:45:01 +02:00
v1.1-reverse tests: add v1.1-reverse example filesystem 2016-10-08 21:45:11 +02:00
v1.1-reverse-plaintextnames tests: add v1.1-reverse-plaintextnames example filesystem 2016-10-08 21:49:21 +02:00
v1.3 tests: recreate v1.3 example filesystem 2017-03-07 20:56:50 +01:00
v1.3-reverse tests: add v1.3-reverse example filesystem 2017-05-30 17:04:46 +02:00
example_filesystems_test.go fusefrontend_reverse: fix 176-byte names 2017-10-01 13:50:25 +02:00
example_test_helpers.go tests: stop calling t.Fatal from example_test_helpers 2017-03-05 13:39:25 +01:00