From owner-freebsd-geom@FreeBSD.ORG Thu Dec 30 19:55:40 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B022316A4CE for ; Thu, 30 Dec 2004 19:55:40 +0000 (GMT) Received: from critter.freebsd.dk (f170.freebsd.dk [212.242.86.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id B321A43D31 for ; Thu, 30 Dec 2004 19:55:39 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.1/8.13.1) with ESMTP id iBUJtZ6W047393; Thu, 30 Dec 2004 20:55:35 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) From: "Poul-Henning Kamp" In-Reply-To: Your message of "Thu, 30 Dec 2004 20:45:22 +0100." Date: Thu, 30 Dec 2004 20:55:35 +0100 Message-ID: <47392.1104436535@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: geom@freebsd.org Subject: Re: GEOM_VOL panics when audio CD is present X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Dec 2004 19:55:40 -0000 In message , =?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?= writes: >"Poul-Henning Kamp" writes: >> I think the right check is to make sure the sectorsize is a power >> of two && > DEV_BSIZE. > >Not good enough. The panic will still be triggered by providers with >a sector size larger than 8192 (which is the smallest non-zero offset >g_vol_ffs_taste() tries to use). The fact that no such devices exist >today does not mean they won't exist at some point in the not-so- >distant future. You're right, we need to check for that too. They could exist with gbde btw. -- 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.