Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 May 2012 14:31:49 +0200
From:      Baptiste Daroussin <bapt@freebsd.org>
To:        Luigi Rizzo <rizzo@iet.unipi.it>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: Switching /etc/*.db from bdb to tinycdb
Message-ID:  <20120502123149.GI31034@azathoth.lan>
In-Reply-To: <CA%2BhQ2%2Bgv%2BQ7SXbK-G5Lybjt4XOF_b3EvyxtQiOCL7pGxmgWRcg@mail.gmail.com>
References:  <20120502114115.GG31034@azathoth.lan> <CA%2BhQ2%2Bgv%2BQ7SXbK-G5Lybjt4XOF_b3EvyxtQiOCL7pGxmgWRcg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--HkMjoL2LAeBLhbFV
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, May 02, 2012 at 02:26:36PM +0200, Luigi Rizzo wrote:
> On Wed, May 2, 2012 at 1:41 PM, Baptiste Daroussin <bapt@freebsd.org> wro=
te:
>=20
> > Hi,
> >
> > I plan to work on switching all the /etc/*.db files from bdb 1.85 to cdb
> > (using
> > the tinycdb implementation)
> >
> > Reason for doing that:
> > 1/ we use the *.db files as a constant database on recreating them using
> > *_mkdb(8) commands
> > 2/ bdb 1.85 database are endianness dependant which can cause problem i=
f I
> > want
> > pkgng to be able to create users when cross installing packages (like
> > adding
> > packages in a mips eb chroot environment on an amd64 host)
> > 3/ the tinycdb API is clean and easy to use (I find it easier and clean=
er
> > to
> > deal with it)
> > 4/ tinycdb is public domain so not problem for us to use it.
> >
> > On the side effects, I'm not sure this is relevant but tinycdb is also
> > faster to
> > read then bdb 1.85.
> >
> > How do I plan to do it.
> >
> > I plan to import the read part or tinycdb into libc and the write part =
into
> > libutil (to avoid cluttering libc).
> >
> > Why importing to libc? to allow all the get*ent to parse the /etc/*.db
> > files
> >
>=20
> just curious, where do we have  the bdb 1.85 routines now ?
> Are they all in libc, or split between libc and libutil ?

All in libc

regards,
Bapt

--HkMjoL2LAeBLhbFV
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAk+hKTUACgkQ8kTtMUmk6EwidACdHUCm8psv/aqDEWgzcPYyZDRI
YG8AoIbPnB9sJeXDPx8r0SpJLoDs+OlT
=LQQX
-----END PGP SIGNATURE-----

--HkMjoL2LAeBLhbFV--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120502123149.GI31034>