From owner-freebsd-current@FreeBSD.ORG Wed Dec 20 17:40:39 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8DBDC16A416 for ; Wed, 20 Dec 2006 17:40:39 +0000 (UTC) (envelope-from grafan@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66B5543CBF for ; Wed, 20 Dec 2006 17:40:25 +0000 (GMT) (envelope-from grafan@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so646097ana for ; Wed, 20 Dec 2006 09:40:25 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gRuOD8gqDpq7CB5gtnxwqbKhJekwDE2HBC3YCyxF38FN2MIJbggt4xLIJ7FY9K0nv201WFPh/f5f7WiEoxvfHHR6cgktjB5cGWQ1VP/vh2RRkGCDcWvRnQSZ1FCfvnJ3Uwv+WTQb/Dozfy8/qYtduvhnNPxkkEKBdMObdv+xRnY= Received: by 10.100.93.5 with SMTP id q5mr6030854anb.1166635998824; Wed, 20 Dec 2006 09:33:18 -0800 (PST) Received: by 10.100.136.16 with HTTP; Wed, 20 Dec 2006 09:33:18 -0800 (PST) Message-ID: <6eb82e0612200933n4a37f0e6k7e7c1d2bf5116c36@mail.gmail.com> Date: Thu, 21 Dec 2006 01:33:18 +0800 From: "Rong-en Fan" To: "Scott Long" In-Reply-To: <45896D9A.4070204@samsco.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6eb82e0612181734n92e4a95l9d54aeb1edae87d1@mail.gmail.com> <4589518C.3070507@samsco.org> <6eb82e0612200716x4fcf6960t3c5fe5cab5fd0bcf@mail.gmail.com> <458955F0.4020102@samsco.org> <6eb82e0612200901i7a95ad49sd5b0ea66db72939b@mail.gmail.com> <45896D9A.4070204@samsco.org> Cc: FreeBSD Current , mjacob@freebsd.org Subject: Re: bigdisk and scsi_da X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Dec 2006 17:40:39 -0000 On 12/21/06, Scott Long wrote: > Rong-en Fan wrote: > > On 12/20/06, Scott Long wrote: > >> Rong-en Fan wrote: > >> > On 12/20/06, Scott Long wrote: > >> >> Rong-en Fan wrote: > >> >> > It seems to me that scsi_da.c reports the wrong size: > >> >> > > >> >> > da1 at mpt0 bus 0 target 0 lun 0 > >> >> > da1: Fixed Direct Access SCSI-5 device > >> >> > da1: 320.000MB/s transfers (160.000MHz, offset 127, 16bit), Tagged > >> >> > Queueing Enabled > >> >> > da1: 0MB (1 0 byte sectors: 0H 0S/T 0C) > >> >> > > >> >> > While geom shows the right one: > >> >> > > >> >> > Geom name: da1 > >> >> > Providers: > >> >> > 1. Name: da1 > >> >> > Mediasize: 4991221760000 (4.5T) > >> >> > Sectorsize: 512 > >> >> > Mode: r0w0e0 > >> >> > fwsectors: 63 > >> >> > fwheads: 255 > >> >> > > >> >> > Speaking of bigdisk, can gpt modify on-disk table on-fly? > >> >> > > >> >> > Regards, > >> >> > Rong-En Fan > >> >> > >> >> Just for reference, what version of FreeBSD is this? > >> > > >> > Ah, it's a 6.2-RC1. I thought I posted to stable@... > >> > > >> > >> Ok, it makes a whole lot more sense now. 7-CURRENT has checks to > >> prevent the divide-by-zero. I'm still looking into the actual > >> bug, though. > > > > OK. Manually backports rev 1.10 of sys/dev/cam/cam.c solved this > > divided by zero problem. Could you or mjacob MFC this to RELENG_6 > > and/or RELENG_6_2? > > > > Thanks, > > Rong-En Fan > > Does it just prevent the panic, or does it also fix the bogus display too? > > Scott > > I think it just fixes the panic. It shows: da1: 0MB (9274165917825105921 0 byte sectors: 0H 0S/T 0C) While the real sectors should be 9748480000 (reported via geom disk). Thanks Rong-En Fan