[Pkg-db-devel] Bug#339337: db4.2: Please compile with -D__USE_GNU

Joerg Wendland joergland at debian.org
Tue Nov 15 16:02:58 UTC 2005


Package: db4.2
Severity: wishlist

Hi,
Linux supports open(2) flag O_DIRECT. BDB installations can possibly 
benefit from that. Using DB_ENV->set_flags(DB_DIRECT_DB) for example
yields the following error:

  direct I/O is not supported by this platform

But it definitely is. If you compile the package with -D__USE_GNU,
O_DIRECT will be defined in {asm,bits}/fcntl.h and db4.2's
__os_have_direct() of os/os_open.c will return true so that the call to
set_flags as shown above will succeed.

Thank you,
  Jörg

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.12-1-k7
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8




More information about the Pkg-db-devel mailing list