From owner-freebsd-geom@FreeBSD.ORG Fri Sep 10 16:37:10 2004 Return-Path: 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 4728C16A4CE for ; Fri, 10 Sep 2004 16:37:10 +0000 (GMT) Received: from afields.ca (afields.ca [216.194.67.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15C9B43D41 for ; Fri, 10 Sep 2004 16:37:10 +0000 (GMT) (envelope-from afields@afields.ca) Received: from afields.ca (localhost.afields.ca [127.0.0.1]) by afields.ca (8.12.11/8.12.11) with ESMTP id i8AGb8WD025480; Fri, 10 Sep 2004 12:37:08 -0400 (EDT) (envelope-from afields@afields.ca) Received: (from afields@localhost) by afields.ca (8.12.11/8.12.11/Submit) id i8AGb7m4025479; Fri, 10 Sep 2004 12:37:07 -0400 (EDT) (envelope-from afields) Date: Fri, 10 Sep 2004 12:37:07 -0400 From: Allan Fields To: Poul-Henning Kamp Message-ID: <20040910163707.GL34157@afields.ca> References: <20040908105234.GJ34157@afields.ca> <41403.1094649924@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41403.1094649924@critter.freebsd.dk> User-Agent: Mutt/1.4i cc: DOT cc: freebsd-geom@freebsd.org Subject: Re: Can't reattach gbde slice [testing] X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2004 16:37:10 -0000 On Wed, Sep 08, 2004 at 03:25:24PM +0200, Poul-Henning Kamp wrote: > > Here is one bugfix, but I'm not 100% sure it is what bites > you, but please test anyway. It doesn't resolve the master key sector overwrite bug, but otherwise works fine. In my tests number_of_keys=4 works reliably even with raw slices, doesn't preclude scenario w/ beginning of slice being overwritten by other install/OS. The issue seems at some point (depending on master key location) w/ number_of_keys=1 the device eventually fills up enough to overwrite key sector(s): could be boundary condition. To try: - number_of_keys=2, number_of_keys=3 - fist_sector=0+x, last_sector=N-x tests - debug: set some break points in bde when (offset == master key offset) (other tests:) - backup/restore key sectors, try fsck - non-ufs use of device should reproduce, verify > Poul-Henning > > 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. -- Allan Fields, AFRSL - http://afields.ca 2D4F 6806 D307 0889 6125 C31D F745 0D72 39B4 5541