kern/115572: [gbde] gbde partitions fail at 28bit/48bit LBA addressing boundary

Pete xd888cc7541309c3f at f4n.org
Mon Sep 17 09:50:11 PDT 2007


The following reply was made to PR kern/115572; it has been noted by GNATS.

From: Pete <xd888cc7541309c3f at f4n.org>
To: bug-followup at FreeBSD.org
Cc: sos at deepcore.dk
Subject: Re: kern/115572: [gbde] gbde partitions fail at 28bit/48bit LBA addressing boundary
Date: Mon, 17 Sep 2007 18:30:11 +0200

 Does anyone know if Søren Schmidt's patch (repeated below) is safe to
 use, and if it is, when it will be commited?
 
 I'm also experiencing this problem, but I haven't dared to try the
 patch yet.
 
 The patch:
 
 --- ata-all.c 23 Feb 2007 16:25:08 -0000 1.279
 +++ ata-all.c 19 Aug 2007 09:25:58 -0000
 @@ -738,7 +738,7 @@
 
 > atadev-flags &= ~ATA_D_48BIT_ACTIVE;
 
 - if ((request->u.ata.lba >= ATA_MAX_28BIT_LBA ||
 + if (((request->u.ata.lba + request->u.ata.count) >= ATA_MAX_28BIT_LBA ||
 > request-> u.ata.count256) &&
 > atadev-param.support.command2 & ATA_SUPPORT_ADDRESS48) {


More information about the freebsd-geom mailing list