libgocryptfs/internal
Jakob Unterwurzacher 9f9d59ded9 inomap: rework logic to efficiently support flags
Adding flags allows to use inomap in reverse mode,
replacing the clunky inoBaseDirIV/inoBaseNameFile
logic that causes problems with high underlying
inode numbers ( https://github.com/rfjakob/gocryptfs/issues/457 )

Microbenchmarks (values below) show that the "SingleDev"
case is now much slower due to an extra map lookup,
but this has no visible effects in ./test.bash results,
so there was no time spent optimizing the case further.

$ go test -bench=.
goos: linux
goarch: amd64
pkg: github.com/rfjakob/gocryptfs/internal/inomap
BenchmarkTranslateSingleDev-4   	18757510	        61.5 ns/op
BenchmarkTranslateManyDevs-4    	18061515	        64.5 ns/op
PASS
ok  	github.com/rfjakob/gocryptfs/internal/inomap	2.467s
2020-04-19 22:00:56 +02:00
..
configfile remove Trezor support 2019-12-28 19:50:49 +01:00
contentenc contentenc: encryptBlocksParallel: explain why last part runs in new goroutine 2020-02-15 21:28:12 +01:00
cryptocore tlog: stop embedding log.Logger to prevent mistakes 2018-02-28 09:02:18 +01:00
ctlsock ctlsock: fix buffer truncation of JSON unmarshal error 2019-01-20 12:13:49 +01:00
ensurefds012 main: Run 'ensure fds' code early during the program startup. 2019-01-05 16:12:16 +01:00
exitcodes remove Trezor support 2019-12-28 19:50:49 +01:00
fusefrontend inomap: rework logic to efficiently support flags 2020-04-19 22:00:56 +02:00
fusefrontend_reverse readpassword: delete CheckTrailingGarbage 2019-04-08 20:18:45 +02:00
inomap inomap: rework logic to efficiently support flags 2020-04-19 22:00:56 +02:00
nametransform nametransform: update comment & simplify tests 2020-04-18 16:14:48 +02:00
openfiletable inomap: split into separate package 2020-04-13 14:54:04 +02:00
pathiv pathiv: fix test failure on Go 1.6 2017-05-31 08:21:36 +02:00
readpassword remove Trezor support 2019-12-28 19:50:49 +01:00
serialize_reads serialize_reads: drop superflous "continue" 2019-09-08 21:19:44 +02:00
siv_aead siv_aead: create private key copy and implement wiping 2018-02-18 16:01:46 +01:00
speed speed: add XChaCha20-Poly1305-Go 2020-04-13 14:54:04 +02:00
stupidgcm Prefer Go stdlib aes-gcm on arm64 with aes instructions 2020-04-13 22:34:07 +02:00
syscallcompat Fix unix2syscall_darwin.go build failure 2019-05-19 21:04:33 +02:00
tlog tlog: disable color codes when switching to syslog 2018-10-17 22:34:30 +02:00