From owner-freebsd-geom@FreeBSD.ORG Sun Aug 19 07:54:24 2007 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B1AD16A417; Sun, 19 Aug 2007 07:54:24 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id BB1BF13C45D; Sun, 19 Aug 2007 07:54:23 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id 2B3DE17382; Sun, 19 Aug 2007 07:26:17 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.1/8.14.1) with ESMTP id l7J7QGCB083157; Sun, 19 Aug 2007 07:26:16 GMT (envelope-from phk@critter.freebsd.dk) To: Graham From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sat, 18 Aug 2007 21:20:11 GMT." <200708182120.l7ILKBvF046099@freefall.freebsd.org> Date: Sun, 19 Aug 2007 07:26:16 +0000 Message-ID: <83156.1187508376@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: sos@FreeBSD.org, freebsd-geom@FreeBSD.org Subject: Re: kern/115572: ata disk bug (was: [gbde] gbde partitions fail at 28bit/48bit LBA addressing boundary ) 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, 19 Aug 2007 07:54:24 -0000 In message <200708182120.l7ILKBvF046099@freefall.freebsd.org>, Graham writes: > 2. attempt (say).... > rabbit# dd if=/dev/zero of=/dev/ad4s1 oseek=2097151 count=1 bs=64k > and the result is.... > dd: /dev/ad4s1: Input/output error > 1+0 records in > 0+0 records out > 0 bytes transferred in 0.000325 secs (0 bytes/sec) > > (If dd is performed on the raw drive, /dev/ad4 then block boundary is > always a power of 2, and blocksize a smaller power of 2. That's always > ok. But we can't assume we use drives that way.) > > So a transfer which starts in the 28-bit zone, but extends over into > the 48-bit region, fails. Such transfers happen in the superblock of > certain size drives, and that plays havoc. The sector mapping of gbde > can do this, but soft-update gets screwed by this happening. It's not > actually to do with the crypto as I first suspected. This is a problem in the ata disk driver. -- 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.