From owner-freebsd-current@FreeBSD.ORG Tue Aug 26 06:23:15 2014 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6ABF6337; Tue, 26 Aug 2014 06:23:15 +0000 (UTC) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 2D6453C98; Tue, 26 Aug 2014 06:23:15 +0000 (UTC) Received: from critter.freebsd.dk (unknown [192.168.60.3]) by phk.freebsd.dk (Postfix) with ESMTP id 9DB211598; Tue, 26 Aug 2014 06:23:13 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.9/8.14.9) with ESMTP id s7Q6NCOu098223; Tue, 26 Aug 2014 06:23:12 GMT (envelope-from phk@phk.freebsd.dk) To: John Baldwin Subject: Re: gbde destroy doesn't match man page? In-reply-to: <2945485.ZemF81RAkB@ralph.baldwin.cx> From: "Poul-Henning Kamp" References: <20140820215522.GA92455@bewilderbeast.blackhelicopters.org> <23149.1408789002@critter.freebsd.dk> <2945485.ZemF81RAkB@ralph.baldwin.cx> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <98221.1409034192.1@critter.freebsd.dk> Date: Tue, 26 Aug 2014 06:23:12 +0000 Message-ID: <98222.1409034192@critter.freebsd.dk> Cc: current@freebsd.org, "Michael W. Lucas" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Aug 2014 06:23:15 -0000 -------- In message <2945485.ZemF81RAkB@ralph.baldwin.cx>, John Baldwin writes: >On Saturday, August 23, 2014 10:16:42 AM Poul-Henning Kamp wrote: >> -------- >> In message <20140820215522.GA92455@bewilderbeast.blackhelicopters.org>, >> "Michae >> l W. Lucas" writes: >> >Playing with GBDE for my FreeBSD disk book, on: >> > >> ># uname -a >> >FreeBSD storm 11.0-CURRENT FreeBSD 11.0-CURRENT #6 r269010: Wed Jul 23 >> >11:13:17 EDT 2014 mwlucas@storm:/usr/obj/usr/src/sys/GENERIC amd64 >> > >> >According to the man page, I should be able to destroy all copies of >> >the key with gbde destroy -n -1. It's in the examples. When I >> >> >try it I get: >> I think that is an oversight in the code. > >Can you expand on this? I.e. what should the code do if it is fixed? Hmm, now that I think about it, -n doesn't make sense because any one of the four keys can open the volume as needed to blow away the masterkey. The manual page should just be fixed. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.