From owner-freebsd-hackers@FreeBSD.ORG Wed May 12 06:08:11 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 179E816A4CE for ; Wed, 12 May 2004 06:08:11 -0700 (PDT) Received: from internal.mail.demon.net (internal.mail.demon.net [193.195.224.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3B9543D49 for ; Wed, 12 May 2004 06:08:09 -0700 (PDT) (envelope-from mike@urgle.com) Received: from singsing.eng.demon.net (singsing.eng.demon.net [194.217.90.11]) by internal.mail.demon.net with ESMTP id i4CDASD26749; Wed, 12 May 2004 14:10:29 +0100 (BST) Received: from michaelb by singsing.eng.demon.net with local (Exim 4.33; FreeBSD) id 1BNtSv-000NQc-TD for freebsd-hackers@freebsd.org; Wed, 12 May 2004 14:08:05 +0100 From: Mike Bristow To: freebsd-hackers@freebsd.org Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: (none) Message-Id: <1084367285.88529.35.camel@singsing> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Wed, 12 May 2004 14:08:05 +0100 Subject: md(8) panic X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 May 2004 13:08:11 -0000 Hi, I am trying to access some ancient 5 1/4" floppies, with 256 byte sectors. Leaving aside the interesting hardware problems, the filesystem on these disks is (surprisingly enough) not supported on -CURRENT. While attempting to write one, I ran: # mdconfig -a -t malloc -S 256 -s 20 Thinking that this would give me some fake media to play with. Instead, it panics the box. This happens at line 809 of md.c version 1.222 which says: sc->nsect /= (sc->secsize / DEV_BSIZE); (where sc->secsize has been initialised to 256, as per my request). It would be easy to check for, and reject, such requests, but should md(8) allow people to create such devices? Or am I being silly in even asking for it? Cheers, Mike -- Mike Bristow - http://www.urgle.com/~mike/ - mike@urgle.com Who is the most famous woman in America? Squash.