From owner-freebsd-current Thu Feb 8 9:20:57 2001 Delivered-To: freebsd-current@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id D7ED837B491; Thu, 8 Feb 2001 09:20:34 -0800 (PST) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id KAA12326; Thu, 8 Feb 2001 10:20:10 -0700 (MST) (envelope-from ken) Date: Thu, 8 Feb 2001 10:20:10 -0700 From: "Kenneth D. Merry" To: non@ever.sanda.gr.jp Cc: current@FreeBSD.ORG, trevor@jpj.net, akiyama@FreeBSD.ORG Subject: Re: od driver for -CURRENT Message-ID: <20010208102010.A12099@panzer.kdm.org> References: <20010206133030.A2232@cicely5.cicely.de> <20010206232112W.non@ever.sanda.gr.jp> <20010207171156.A72756@cicely5.cicely.de> <20010208214259C.non@ever.sanda.gr.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010208214259C.non@ever.sanda.gr.jp>; from non@ever.sanda.gr.jp on Thu, Feb 08, 2001 at 09:42:59PM +0900 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Feb 08, 2001 at 21:42:59 +0900, non@ever.sanda.gr.jp wrote: > 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'. No problem. :) > 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. Hmm, can you demonstrate the problem? The write-protect check in the od driver is one of the things that the da driver doesn't have. I figured it wouldn't really be necessary, since any attempted writes would be returned with errors. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message