database: Increase page size to 64k
Since libloc is currently only using mmap() to map any databases into
memory, all mapped address range needs to be page aligned.
In the past, every database was aligned to a 4k page boundary. Some
architectures use 64k pages by default which could therefore not open
the database.
This patch changes the alignment to 64k which should hopefully be a
good common denominator. However, older database cannot be opened.
If we would ever have to support an architecture which's page size
is not evenly fitting into 64k, we will have to implement an
alternative to mmap.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Showing
Please register or sign in to comment