Fall back to private db environment on system level EINVAL
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 3 May 2012 13:15:59 +0000 (16:15 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 3 May 2012 13:37:51 +0000 (16:37 +0300)
commit58c5eb28d5f267313294486c6f8a7a6c84984d86
treeebcbda98cec9254f5f4179ce0fc1506fd6205c00
parent5f0bdf9e8af3dfc07aaa7c82671bec4915aaab78
Fall back to private db environment on system level EINVAL

- BDB wants to use mmap() for its environment by default, but not
  all (file)systems support this, as pointed out by Daniel Drak.
  However env->open() can return EINVAL for a number of reasons,
  require all the fallback reasons to be system level errors to
  differentiate from "logical" errors such as incompatible flags
  to (possibly pre-existing) db environment, in which case we better
  just error out.
lib/backend/db3.c