From owner-FreeBSD-users-jp@jp.freebsd.org  Tue Apr  4 19:51:27 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id TAA56340;
	Tue, 4 Apr 2000 19:51:27 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from pis.toba-cmt.ac.jp (pis.toba-cmt.ac.jp [202.26.248.77])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id TAA56315
	for <FreeBSD-users-jp@jp.freebsd.org>; Tue, 4 Apr 2000 19:51:26 +0900 (JST)
	(envelope-from kiri@pis.toba-cmt.ac.jp)
From: kiri@pis.toba-cmt.ac.jp
Received: from kiri.pis (localhost [127.0.0.1])
	by pis.toba-cmt.ac.jp (8.9.3/8.9.3) with ESMTP id UAA00546
	for <FreeBSD-users-jp@jp.freebsd.org>; Tue, 4 Apr 2000 20:01:34 +0900 (JST)
	(envelope-from kiri@pis.toba-cmt.ac.jp)
Message-Id: <200004041101.UAA00546@pis.toba-cmt.ac.jp>
Date: Tue, 04 Apr 2000 20:01:34 +0900
To: FreeBSD-users-jp@jp.freebsd.org
User-Agent: Wanderlust/1.0.3 (Notorious) SEMI/1.13.3 (Komaiko) FLIM/1.12.5 (Hirahata) MULE XEmacs/21.1 (patch 9) (Canyonlands) (i386--freebsd)
MIME-Version: 1.0 (generated by SEMI 1.13.3 - "Komaiko")
Content-Type: text/plain; charset=ISO-2022-JP
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: FreeBSD-users-jp 51006
Subject: [FreeBSD-users-jp 51006] Any solutions fd0 deid in 5.0-CURRENT?
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org
X-Originator: kiri@pis.toba-cmt.ac.jp

$B6M;3$G$9!#(B

$B!t(B freebsd-current $B$G%j%W%i%$$9$Y$-$J$s$G$7$g$&$,(B freebsd-current $BA4$F$rDI$$@Z(B
$B!t(B $B$l$F$^$;$s$N$G3NG'$r4^$a$F$3$3$K%]%9%H$7$^$9!#(B

At Fri, 24 Mar 2000 14:06:26 +0000,
freebsd@mrynet.com (FreeBSD mailing list) wrote:
> 
> Jim Bloom wrote:
> > 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.
> > 
> > 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
> 
> This patch does indeed fix the writing of floppies.  However, fdformat(1)
> still fails as follows:
> 
> ttyp7:--ROOT--@mrynet (22): fdformat -f 1440 fd0.1440
> Format 1440K floppy `/dev/fd0.1440'? (y/n): y
> Processing EE^C------------------------------------
> 
> with /var/log/messages indicating:
> Mar 24 13:51:13 mrynet /kernel: fd0c: hard error reading fsbn 0 of 0-17 (ST0 40<abnrml> ST1 4<sec_not_fnd> ST2 0
> cyl 0 hd 0 sec 2)
> Mar 24 13:51:13 mrynet /kernel: fd0c: hard error reading fsbn 0 of 0-17 (ST0 40<abnrml> ST1 4<sec_not_fnd> ST2 0
> cyl 0 hd 0 sec 2)
> Mar 24 13:51:13 mrynet /kernel: fd0c: hard error reading fsbn 18 of 18-35 (ST0 44<abnrml,top_head> ST1
> 4<sec_not_fnd> ST2 0 cyl 0 hd 1 sec 2)
> Mar 24 13:51:13 mrynet /kernel: fd0c: hard error reading fsbn 18 of 18-35 (ST0 44<abnrml,top_head> ST1
> 4<sec_not_fnd> ST2 0 cyl 0 hd 1 sec 2)
> Mar 24 13:51:14 mrynet /kernel: fd0c: hard error reading fsbn 36 of 36-53 (ST0 40<abnrml> ST1 4<sec_not_fnd> ST2 0
> cyl 1 hd 0 sec 2)
> Mar 24 13:51:14 mrynet /kernel: fd0c: hard error reading fsbn 36 of 36-53 (ST0 40<abnrml> ST1 4<sec_not_fnd> ST2 0
> cyl 1 hd 0 sec 2)
> (and continuing).
> 
> Additionally, reading a floppy returns errors for any read:
> (This is a freshly formatted floppy verified on other machines)
> 
> ttyp7:--ROOT--@mrynet (7): dd if=/dev/rfd0.1440 | wc
> dd: /dev/rfd0.1440: Input/output error
> 0+0 records in
> 0+0 records out
> 0 bytes transferred in 2.395566 secs (0 bytes/sec)
>        0       0       0
> 
> with /var/log/messages indicating:
> Mar 24 14:04:28 mrynet /kernel: fd0c: hard error reading fsbn 0 (ST0 40<abnrml> ST1 4<sec_not_fnd> ST2 0 cyl 0 hd 0
> sec 2)
> Mar 24 14:04:38 mrynet /kernel: fd0c: hard error reading fsbn 0 (ST0 40<abnrml> ST1 4<sec_not_fnd> ST2 0 cyl 0 hd 0
> sec 2)

$B$N7o$J$s$G$9$,!"$=$N8e$I$J$?$+BP=h$5$l$?J}$*$i$l$^$;$s$+!)(B

$B!t(B $BFMA3%U%m%C%T!<%G%#%9%/$,;H$($J$/$J$C$?$N$G$"$o$F$U$?$a$$$F$*$j$^$9!#(B
