From owner-freebsd-current@FreeBSD.ORG Tue Apr 17 01:53:40 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 7B6D41065672; Tue, 17 Apr 2012 01:53:40 +0000 (UTC) (envelope-from etnapierala@googlemail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id C405D8FC20; Tue, 17 Apr 2012 01:53:39 +0000 (UTC) Received: by wern13 with SMTP id n13so4896522wer.13 for ; Mon, 16 Apr 2012 18:53:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=V/L4OOZAb9tO1mMTmu3acHhwo07u34Xs+fPTCRWsycY=; b=GXlPYcvA/LOvcNM6bSi2sNMVBgJNSVE5ynvSDIT1LbHFSU/nOz/epIv72PzkPgzYGS 8C0/yGyN6sOXqskUnE7HJh59SS2vbRf6jzBoALlXS8tOJSgWz3KE1Kp0uH7ifN8iYohG Rznbuqx8qxyriNy+dkkJCfdJ+Op43oZP5imQ+KEmsVA/EnoNlweCfNaNXv8wdve36lEu XKZjTDRCNLa1tAaviUj93xZSWBUmK/QyU9HgRnDZqwnKkTMwv38BWoABR+p0dIXkAhof ikib6IkXgb3VK7BsHKHHgtqAkiZsobcVv7195ozu+2MR+buP8WHZSYoHXpx+lhaw7Ok3 72CQ== Received: by 10.180.73.143 with SMTP id l15mr14001315wiv.11.1334627618784; Mon, 16 Apr 2012 18:53:38 -0700 (PDT) Received: from [192.168.1.105] (45.81.datacomsa.pl. [195.34.81.45]) by mx.google.com with ESMTPS id ex2sm37748696wib.8.2012.04.16.18.53.35 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 Apr 2012 18:53:36 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=iso-8859-2 From: =?iso-8859-2?Q?Edward_Tomasz_Napiera=B3a?= In-Reply-To: <4F8C5DE1.60200@gwdg.de> Date: Tue, 17 Apr 2012 03:53:27 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: 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> To: Rainer Hurling X-Mailer: Apple Mail (2.1257) 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 01:53:40 -0000 Wiadomo=B6=E6 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: >>>=20 >>> 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. >=20 > 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- 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 !=3D 0) xpt_print(periph->path, "unable to retrieve capacity = data"); =20 - if (periph->flags & CAM_PERIPH_INVALID) + if (periph->flags & CAM_PERIPH_INVALID || + softc->disk->d_sectorsize =3D=3D 0 || + softc->disk->d_mediasize =3D=3D 0) error =3D ENXIO; =20 if (error =3D=3D 0 && (softc->flags & DA_FLAG_PACK_REMOVABLE) !=3D= 0 && --=20 If you cut off my head, what would I say? Me and my head, or me and my = body?