From owner-freebsd-current@FreeBSD.ORG Tue Apr 17 08:50:12 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28384106564A; Tue, 17 Apr 2012 08:50:12 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from fmailer.gwdg.de (fmailer.gwdg.de [134.76.11.16]) by mx1.freebsd.org (Postfix) with ESMTP id 672A38FC08; Tue, 17 Apr 2012 08:50:03 +0000 (UTC) Received: from wald.nfv.gwdg.de ([134.76.242.31] helo=pc028.nfv) by mailer.gwdg.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1SK46q-0004KG-Pw; Tue, 17 Apr 2012 10:50:01 +0200 Message-ID: <4F8D2EB4.7060003@gwdg.de> Date: Tue, 17 Apr 2012 10:49:56 +0200 From: Rainer Hurling User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120317 Thunderbird/10.0.3 MIME-Version: 1.0 To: =?ISO-8859-2?Q?Edward_Tomasz_Napiera=B3a?= References: <20120415053032.370280f9@cox.net> <4F8BDF13.4060903@mail.zedat.fu-berlin.de> <4F8C2E2B.20408@gmail.com> <20120416145543.GB2358@deviant.kiev.zoral.com.ua> <4F8C45A4.2050407@gwdg.de> <20120416173150.GH2358@deviant.kiev.zoral.com.ua> <4F8C5DE1.60200@gwdg.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Authenticated: Id:rhurlin X-Spam-Level: - X-Virus-Scanned: (clean) by exiscan+sophie Cc: matt , "O. Hartmann" , ken@freebsd.org, freebsd-current@freebsd.org, Konstantin Belousov , "Conrad J. Sabatier" Subject: Re: Kernel builds, but crashes at boot (amd64, Revision: 234306) 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: Tue, 17 Apr 2012 08:50:12 -0000 Am 17.04.2012 03:53 (UTC+1) schrieb Edward Tomasz Napierała: > Wiadomość napisana przez Rainer Hurling w dniu 16 kwi 2012, o godz. 19:58: >> On 16.04.2012 19:31 (UTC+1), Konstantin Belousov wrote: >>> On Mon, Apr 16, 2012 at 06:15:32PM +0200, Rainer Hurling wrote: >>>> >>>> I just updated my system to r234342, only downgraded >>>> /usr/src/sys/cam/scsi/scsi_da.c to r233746, and now the system is >>>> booting again. So obviously there is something wrong with the newest >>>> patch to scsi_da.c. >>> It is too broad, try to revert exactly one patch and see whether it works. >> >> Sorry for my bad english. I wanted to say, that I only reverted exactly one patch (file scsi_da.c from 234177 back to 233746 manually). The rest is up to r234342. > > Could you try the patch below? > > Index: sys/cam/scsi/scsi_da.c > =================================================================== > --- sys/cam/scsi/scsi_da.c (revision 234314) > +++ sys/cam/scsi/scsi_da.c (working copy) > @@ -938,7 +938,9 @@ daopen(struct disk *dp) > if (error != 0) > xpt_print(periph->path, "unable to retrieve capacity data"); > > - if (periph->flags& CAM_PERIPH_INVALID) > + if (periph->flags& CAM_PERIPH_INVALID || > + softc->disk->d_sectorsize == 0 || > + softc->disk->d_mediasize == 0) > error = ENXIO; > > if (error == 0&& (softc->flags& DA_FLAG_PACK_REMOVABLE) != 0&& > > Thanks for the patch. I just tried it with 10.0-CURRENT (amd64) r234370 and it at least boots again.