libgocryptfs/internal/fusefrontend
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
..
args.go reverse mode: support wildcard exclude (--exclude-wildcard) 2019-03-26 20:56:37 +01:00
ctlsock_interface.go fusefrontend: Use appropriate flags in decryptPathAt. 2019-01-03 18:24:05 +01:00
dircache.go main: Run 'ensure fds' code early during the program startup. 2019-01-05 16:12:16 +01:00
file_allocate_truncate.go fusefrontend: Fix computation of cipherSz in Allocate FUSE call. 2019-01-06 20:56:59 +01:00
file_holes.go fusefrontend: Properly convert plaintext <-> ciphertext offsets in SeekData(). 2019-01-06 12:21:54 +01:00
file.go inomap: split into separate package 2020-04-13 14:54:04 +02:00
fs_dir.go fusefrontend: warn about missing diriv 2019-11-03 20:38:15 +01:00
fs.go inomap: rework logic to efficiently support flags 2020-04-19 22:00:56 +02:00
openbackingdir_test.go Revert "syscallcompat: drop Faccessat AT_SYMLINK_NOFOLLOW helper" 2019-01-20 13:10:59 +01:00
openbackingdir.go nametransform: reject names longer than 255 chars 2019-02-17 17:05:05 +01:00
xattr_darwin.go fusefrontend: drop xattr user namespace restriction 2020-02-29 20:12:43 +01:00
xattr_linux.go fusefrontend: drop xattr user namespace restriction 2020-02-29 20:12:43 +01:00
xattr_unit_test.go fusefrontend: make openBackingDir() symlink-safe 2019-01-01 16:24:09 +01:00
xattr.go fusefrontend: drop xattr user namespace restriction 2020-02-29 20:12:43 +01:00