From owner-freebsd-current Thu Feb 8 4:43:30 2001 Delivered-To: freebsd-current@freebsd.org Received: from ns.sanda.gr.jp (ns.sanda.gr.jp [210.232.122.18]) by hub.freebsd.org (Postfix) with ESMTP id 9823A37B503; Thu, 8 Feb 2001 04:43:03 -0800 (PST) Received: from ever.sanda.gr.jp (epoch [10.93.63.51]) by ns.sanda.gr.jp (8.9.3/3.7W) with ESMTP id VAA26958; Thu, 8 Feb 2001 21:43:00 +0900 (JST) From: non@ever.sanda.gr.jp Received: from localhost (localhost [127.0.0.1]) by ever.sanda.gr.jp (8.8.8/3.3W9) with ESMTP id VAA15397; Thu, 8 Feb 2001 21:43:00 +0900 (JST) To: current@FreeBSD.ORG Cc: trevor@jpj.net, akiyama@FreeBSD.ORG Subject: Re: od driver for -CURRENT In-Reply-To: <20010207171156.A72756@cicely5.cicely.de> References: <20010206133030.A2232@cicely5.cicely.de> <20010206232112W.non@ever.sanda.gr.jp> <20010207171156.A72756@cicely5.cicely.de> X-Mailer: Mew version 1.94 on Emacs 19.28 / Mule 2.3 =?iso-2022-jp?B?KBskQkt2RSYyVhsoQik=?= Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20010208214259C.non@ever.sanda.gr.jp> Date: Thu, 08 Feb 2001 21:42:59 +0900 X-Dispatcher: imput version 20000228(IM140) Lines: 35 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG From: Bernd Walter Date: Wed, 7 Feb 2001 17:11:57 +0100 > On Tue, Feb 06, 2001 at 11:21:12PM +0900, non@ever.sanda.gr.jp wrote: > > Today I tried with 4.2-RELEASE (sorry not -current) and, > > 1. Boot up the 4.2-RELEASE with GENERIC kernel. > > 2. Connect MO drive with PC Card SCSI(ncv). > > 3. Insert PC Card without medium in the MO drive. > > 4. The pccardd automatically run camcontrol rescan. > > 5. Message says that da0 is 0MB capacity. > > 6. Run fdisk da0 > > 7. got panic with divided by zero. > > > > Probably divided by zero is caused at line 737 or 748 in the > > scsi_low_action() in cam/scsi/scsi_low.c because of ccg->block_size or > > secs_per_cylinder is zero. I tried with same drive and another SCSI card (ahc0) in 4.2-RELEASE. No problem were found. I watched the diffs between da.c and od.c. It seems like some fault in scsi_low.c. Hmm, my fault.... Sorry for claiming `da'. By the way, in Japanese users mailing list, some said that `da' does not check whether a medium is writerable or not (write protected). If you mount a write protected medium with -rw, it will lead bad condition when you do umount. > I never used fdisk on a removeable disk as I only needed them for FreeBSD. : > It looks like fdisk triggers the bug. I used fdisk just to check if there is a slice or not. Fdisk did not make problem. // Noriaki Mitsunaga // To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message