From owner-freebsd-geom@FreeBSD.ORG Thu Oct 14 07:21:02 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 6DE3116A4CE; Thu, 14 Oct 2004 07:21:02 +0000 (GMT) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id B2F9743D53; Thu, 14 Oct 2004 07:21:01 +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 i9E7L0x3059230; Thu, 14 Oct 2004 09:21:00 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: staylor@mrynet.com (User Staylor) From: "Poul-Henning Kamp" In-Reply-To: Your message of "Thu, 14 Oct 2004 00:21:00 CDT." <200410140521.i9E5L06d001096@mrynet.com> Date: Thu, 14 Oct 2004 09:21:00 +0200 Message-ID: <59229.1097738460@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: freebsd-current@freebsd.org cc: freebsd-geom@freebsd.org Subject: Re: GEOM will panic 6.0-current on userland wrong-length disk reads 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, 14 Oct 2004 07:21:02 -0000 Do you have rev. 1.63 of sys/geom/geom_io.c ? In message <200410140521.i9E5L06d001096@mrynet.com>, User Staylor writes: >Just discovered (and verified with latest build on >current.freebsd.org) that the following will panic >the new GEOM fdc driver in 6.0-current: > ># dd if=/dev/fd0 bs=55 >panic: wrong length 55 for sectorsize 512 > >And further checking, discovered that ALL disk devices will cause >a panic: > >dd if=/dev/ad0 bs=1234 >panic: wrong length 1234 for sectorsize 512 > >Perhaps this is geom's way of complaining? Seems a rather radical >way to handle non-matching-blocksize reads of disk devices. A >simple programming error reading a disk dev node will panic the >machine. > >-scott >_______________________________________________ >freebsd-geom@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-geom >To unsubscribe, send any mail to "freebsd-geom-unsubscribe@freebsd.org" > -- 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.