Source: golang-github-hanwen-go-fuse
Version: 0.0~git20161210.0.6c2b7d8-2
Control: affects -1 + gocryptfs

"const PAGESIZE = 4096":

https://anonscm.debian.org/cgit/pkg-go/packages/golang-github-hanwen-go-fuse.git/tree/fuse/types.go#n11

This is not portable. On arm64, the page size can be 4096, 16384, or
65536, and arm64 seems not to be the only Debian architecture on which
the page size must be determined at run time:

https://wiki.debian.org/ArchitectureSpecificsMemo

Usually the auxiliary vector (getauxval) is the best way to find the
page size, though it can be discovered with a sequence of mmap and
munmap system calls if for some reason the auxiliary vector is
inaccessible.

Reply via email to