From owner-freebsd-geom@FreeBSD.ORG Sun Mar 4 21:05:52 2012 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CB517106564A for ; Sun, 4 Mar 2012 21:05:52 +0000 (UTC) (envelope-from rsimmons0@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7BC968FC14 for ; Sun, 4 Mar 2012 21:05:52 +0000 (UTC) Received: by vcmm1 with SMTP id m1so1916231vcm.13 for ; Sun, 04 Mar 2012 13:05:51 -0800 (PST) Received-SPF: pass (google.com: domain of rsimmons0@gmail.com designates 10.52.23.74 as permitted sender) client-ip=10.52.23.74; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rsimmons0@gmail.com designates 10.52.23.74 as permitted sender) smtp.mail=rsimmons0@gmail.com; dkim=pass header.i=rsimmons0@gmail.com Received: from mr.google.com ([10.52.23.74]) by 10.52.23.74 with SMTP id k10mr30497160vdf.106.1330895151721 (num_hops = 1); Sun, 04 Mar 2012 13:05:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=mS360t+KzMEKJ5lldGb4BOPSYu6hZ7sDjnHspGpC9tQ=; b=xxF++zBm9oOXhpggZVIdMGs+KNz+6RpV+sDKuNCulh0sDGW1FXrLwzV3PMzZ0HAgwB WlZsfpfozgWZONBAStVz7kMao6b3NXRp19YxStN4Xvl/mdIk49eQJNC7VUXZGK5n/vRW 6vJDGljZtthESYBECPc/VR3yai3ni6N0KKbhM4tTxzPT0SSYBZDHDuhCFyBaE4l5ju4P TVb0UDjl897kBc8ToN1mG7V+S7ryKNj2oy9SnmxLVrxl1jl1YZ/YCHWplY4hgbnFtgn2 YotPmw+kZFLogH2HF6NEU2B+qpNRhGN5mPVXjrQjw0LFBwgiegKfJ6QVPNnYK6NdpLsB pMVw== MIME-Version: 1.0 Received: by 10.52.23.74 with SMTP id k10mr26112620vdf.106.1330895151678; Sun, 04 Mar 2012 13:05:51 -0800 (PST) Received: by 10.52.65.114 with HTTP; Sun, 4 Mar 2012 13:05:51 -0800 (PST) In-Reply-To: <20120302131429.183b491d@gumby.homeunix.com> References: <20120302131429.183b491d@gumby.homeunix.com> Date: Sun, 4 Mar 2012 16:05:51 -0500 Message-ID: From: Robert Simmons To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: geli init for first time X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Mar 2012 21:05:52 -0000 On Fri, Mar 2, 2012 at 8:14 AM, RW wrote: > On Thu, 1 Mar 2012 22:00:17 -0500 > Robert Simmons wrote: > >> After you perform "geli init" and "geli attach" you must use dd to >> initialize the new provider before you run newfs. =A0If you had enabled >> authentication of some kind during the init step, when you attach the >> provider you get a series of errors such as these: >> GEOM_ELI: ada0p4.eli: 4096 bytes corrupted at offset 0. >> GEOM_ELI: ada0p4.eli: 4096 bytes corrupted at offset 4096. >> >> ... >> I propose that a switch be added to "geli attach" that signifies that >> it is the first time that a provider is being attached and these >> errors are to be suppressed. > > > If you know to use the switch then you'd know that the warnings are > harmless. Perhaps it would be better to make the warning more accurate: > > GEOM_ELI: ada0p4.eli: 4096 bytes not authenticated at offset 4096. > > >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0... add something= to the end of the DATA >> AUTHENTICATION section of the geli(8) man page that mentions why these >> errors occur and that they can be safely ignored. > > Good idea I have created a patch that incorporates the change in error messages that you suggested to make them more accurate as well as add a bit of information about these error messages to the geli(8) man page. I submitted this patch in the following PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=3D165695