From owner-freebsd-current Fri Mar 24 12:36:26 2000 Delivered-To: freebsd-current@freebsd.org Received: from reyim.ne.mediaone.net (reyim.ne.mediaone.net [24.218.251.241]) by hub.freebsd.org (Postfix) with ESMTP id EE8D037B7B8 for ; Fri, 24 Mar 2000 12:36:19 -0800 (PST) (envelope-from bloom@acm.org) Received: from acm.org (localhost [127.0.0.1]) by reyim.ne.mediaone.net (8.9.3/8.9.3) with ESMTP id PAA00285; Fri, 24 Mar 2000 15:35:35 -0500 (EST) (envelope-from bloom@acm.org) Message-ID: <38DBD197.29AD6744@acm.org> Date: Fri, 24 Mar 2000 15:35:35 -0500 From: Jim Bloom Reply-To: bloom@acm.org X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: FreeBSD mailing list Cc: freebsd-current@freebsd.org, phk@critter.freebsd.dk Subject: Re: fd0: Debugger("d_iocmd botch") called. References: <200003241954.LAA00546@mrynet.com> Content-Type: multipart/mixed; boundary="------------7D0E1521E15DD9B4A3213A24" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --------------7D0E1521E15DD9B4A3213A24 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I reproduced the problem and have attached a patch. It was the exact same problem as in swap_pager.c (assuming B_WRITE was 0). Hopefully phk will commit this fix shortly. Jim Bloom bloom@acm.org \ FreeBSD mailing list wrote: > > I cvsup'd once more this morning... Nothing significant has changed since the > last one. > > For reference: > ttyp9:staylor@mrynet (4): grep \$FreeBSD /sys/vm/swap_pager.c > * $FreeBSD: src/sys/vm/swap_pager.c,v 1.134 2000/03/22 08:40:13 phk Exp $ > > Nonetheless, I built a new kernel using "config -r". No change in floppy operation. --------------7D0E1521E15DD9B4A3213A24 Content-Type: text/plain; charset=us-ascii; name="fd.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="fd.patch" Index: sys/isa/fd.c =================================================================== RCS file: /users/ncvs/src/sys/isa/fd.c,v retrieving revision 1.179 diff -u -r1.179 fd.c --- sys/isa/fd.c 2000/03/20 11:28:39 1.179 +++ sys/isa/fd.c 2000/03/24 20:20:53 @@ -2228,6 +2228,7 @@ BUF_LOCKINIT(bp); BUF_LOCK(bp, LK_EXCLUSIVE); bp->b_flags = B_PHYS | B_FORMAT; + bp->b_iocmd = BIO_WRITE; /* * calculate a fake blkno, so fdstrategy() would initiate a --------------7D0E1521E15DD9B4A3213A24-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message