]> git.decadent.org.uk Git - nfs-utils.git/commit
nfsdcld: add routines for a sqlite backend database
authorJeff Layton <jlayton@redhat.com>
Thu, 26 Apr 2012 15:43:30 +0000 (11:43 -0400)
committerSteve Dickson <steved@redhat.com>
Thu, 26 Apr 2012 17:25:04 +0000 (13:25 -0400)
commit3e859abefffafd8718b5f1f76da7b129fc18e281
tree7e5fe58c202e3f3706735a20580ca58c88ba898f
parentdfebe7f4f25a12b615195f339192fa8837d9b5c9
nfsdcld: add routines for a sqlite backend database

Rather than roll our own "storage engine", use sqlite instead. It fits
the bill nicely as it does:

- durable on-disk storage
- the ability to constrain record uniqueness
- a facility for collating and searching the host records

...it does add a build dependency to nfs-utils, but almost all modern
distros provide those packages.

The current incarnation of this code dynamically links against a
provided sqlite library, but we could also consider including their
single-file "amalgamation" to reduce dependencies (though with all
the caveats that that entails).

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/nfsdcld/Makefile.am
utils/nfsdcld/nfsdcld.c
utils/nfsdcld/sqlite.c [new file with mode: 0644]
utils/nfsdcld/sqlite.h [new file with mode: 0644]