From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 12 23:28:58 2013 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8BE09713; Tue, 12 Nov 2013 23:28:58 +0000 (UTC) Received: from caravan.chchile.org (caravan.chchile.org [178.32.125.136]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 21D5120FE; Tue, 12 Nov 2013 23:28:58 +0000 (UTC) Received: by caravan.chchile.org (Postfix, from userid 1000) id 6CB4AC25D5; Tue, 12 Nov 2013 23:28:56 +0000 (UTC) Date: Wed, 13 Nov 2013 00:28:56 +0100 From: Jeremie Le Hen To: Julio Merino Subject: Re: Importing netbsd cdb Message-ID: <20131112232856.GJ37879@caravan.chchile.org> Mail-Followup-To: Julio Merino , Baptiste Daroussin , hackers@freebsd.org, Atte Peltomaki References: <20131027232628.GB74512@ithaqua.etoilebsd.net> <20131105220225.GF37879@caravan.chchile.org> <20131106084550.GA21489@ass.pp.htv.fi> <20131106103947.GI56315@ithaqua.etoilebsd.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Baptiste Daroussin , hackers@freebsd.org, Atte Peltomaki X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Nov 2013 23:28:58 -0000 On Wed, Nov 06, 2013 at 10:57:10PM -0500, Julio Merino wrote: > On Wed, Nov 6, 2013 at 5:39 AM, Baptiste Daroussin wrote: > > From the netbsd commit log, it says that in case of services it is at least as > > slow, and at best faster, from my testing it is way faster, (sorry no numbers) > > > > Concerning the migration, the way I did it for now, is that getservent is trying > > to open the cdb database and fallsback on the bdb one, so migrating to > > 11.0-RELEASE should be ootb. > > > > Running: > > services_mkdb > > > > Will generate the cdb version of the db > > Hmm... but who would be in charge of running this conversion process > during an upgrade to 11? The administrator by hand, or would this be > automated in some manner? > > Also, if this is expected to be done by hand: it's possible for > somebody to forget doing the conversion when upgrading to 11. Would > there be any notices announcing that the old format is deprecated and > would go away by 12? I'm having in mind a failure case where you > upgrade from 11 to 12 and things break because you forgot to rebuild > the database with 11 (which is the release that allows you to do the > conversion). We could probably cover that case with the release notes, although it would be preferable to have a technical way to enforce this conversion. Maybe mergemaster(8), although I'm not sure it's part of the official way to upgrade from one release to another. We have to give some thinking as well on people upgrading using freebsd-update(8). -- Jeremie Le Hen Scientists say the world is made up of Protons, Neutrons and Electrons. They forgot to mention Morons.