From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 7 03:57:39 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 ESMTP id 53241AE7 for ; Thu, 7 Nov 2013 03:57:39 +0000 (UTC) (envelope-from julio@meroh.net) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com [209.85.217.171]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D3C1F2754 for ; Thu, 7 Nov 2013 03:57:38 +0000 (UTC) Received: by mail-lb0-f171.google.com with SMTP id x18so458454lbi.30 for ; Wed, 06 Nov 2013 19:57:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=fhjlt3OIqeaUPNlaRaPJx2Cs5a/zso7hanUIPxaWdgY=; b=Mk9aLuGp5jI0ir/cf3N2q97I+PUmo+YW7F4DW1gy/ghsRTaEFl7RZr4cJvOqRUtM01 ITCkZg490b4QkdO70PBttABCDvjM/2vwSKaK0ojvytYxmeqpf01bHSN562Ytl1cYBrVP cijkmn4yFehA93dbfkjieT9WsQXCO7MjfcvdcTIAczeRCHEizRYRNhtJVG12AEIp7xjA 0gsx+3qaejJnkTMelF6yAcKf//k1owJ0ig7BoJF6Z4Jr3AqDc50wJplKWZcx+K88RLxC XRVb+oFgpDlK13yT4/0jDDpCl+muYV8wHDLFWL0favYTiDGgPf0FsNgstjwcMiNiBJ2x NDrw== X-Gm-Message-State: ALoCoQlUNIdaPW93H3hCGwg3raAGB7RbYDkkQNYNxevpJlJRf8b99TJqJ2jyAcUon63tbHtOjSk5 X-Received: by 10.112.136.65 with SMTP id py1mr4861448lbb.4.1383796651030; Wed, 06 Nov 2013 19:57:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.132.135 with HTTP; Wed, 6 Nov 2013 19:57:10 -0800 (PST) X-Originating-IP: [172.26.38.44] In-Reply-To: <20131106103947.GI56315@ithaqua.etoilebsd.net> References: <20131027232628.GB74512@ithaqua.etoilebsd.net> <20131105220225.GF37879@caravan.chchile.org> <20131106084550.GA21489@ass.pp.htv.fi> <20131106103947.GI56315@ithaqua.etoilebsd.net> From: Julio Merino Date: Wed, 6 Nov 2013 22:57:10 -0500 Message-ID: Subject: Re: Importing netbsd cdb To: Baptiste Daroussin Content-Type: text/plain; charset=ISO-8859-1 Cc: hackers@freebsd.org, Atte Peltomaki X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Nov 2013 03:57:39 -0000 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). -- Julio Merino / @jmmv