From owner-freebsd-geom@FreeBSD.ORG Sun Sep 10 17:49:14 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEF1316A407 for ; Sun, 10 Sep 2006 17:49:14 +0000 (UTC) (envelope-from matled@gmx.net) Received: from moooo.ath.cx (moooo.ath.cx [85.116.203.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 545B043D76 for ; Sun, 10 Sep 2006 17:49:10 +0000 (GMT) (envelope-from matled@gmx.net) Date: Sun, 10 Sep 2006 19:49:08 +0200 From: Matthias Lederhofer To: freebsd-geom@freebsd.org Message-ID: <20060910174908.GA26715@moooo.ath.cx> References: <20060910173643.GA22815@moooo.ath.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060910173643.GA22815@moooo.ath.cx> Subject: Re: [PATCH] geli: command to set the boot flag 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, 10 Sep 2006 17:49:14 -0000 Matthias Lederhofer wrote: > diff --git a/geom_eli.c b/geom_eli.c This is for src/sbin/geam/class/eli. And here is another patch for a comment I found while reading the source, probably this was copied 'n' pasted. :) --- geom_eli.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/geom_eli.c b/geom_eli.c index f90e974..489e212 100644 --- a/geom_eli.c +++ b/geom_eli.c @@ -1058,7 +1058,7 @@ eli_restore(struct gctl_req *req) gctl_error(req, "MD5 hash mismatch: not a geli backup file?"); goto out; } - /* Read metadata from the provider. */ + /* Write metadata to the provider. */ if (pwrite(provfd, sector, secsize, mediasize - secsize) != (ssize_t)secsize) { gctl_error(req, "Cannot write metadata: %s.", strerror(errno)); -- 1.4.1