From owner-freebsd-bugs Sun Mar 28 20: 0:19 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 396BA1556B for ; Sun, 28 Mar 1999 20:00:19 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id UAA24566; Sun, 28 Mar 1999 20:00:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Date: Sun, 28 Mar 1999 20:00:01 -0800 (PST) Message-Id: <199903290400.UAA24566@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Bruce Evans Subject: Re: kern/10695: fd fails for all operations Reply-To: Bruce Evans Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/10695; it has been noted by GNATS. From: Bruce Evans To: FreeBSD-gnats-submit@FreeBSD.ORG, tomdean@ix.netcom.com Cc: Subject: Re: kern/10695: fd fails for all operations Date: Mon, 29 Mar 1999 13:50:33 +1000 >>Description: > >All operations to fd fail. The drive works with DOS. >With known-good floppies: > ># mount_msdos /dev/fd0a /floppy >mount_msdos: /dev/fd0a: Input/output error ># dmesg > >fd0: recal failed ST0 70 cyl 0 >fd0: recal failed ST0 70 cyl 0 >fd0: recal failed ST0 70 cyl 0 >fd0: recal failed ST0 70 cyl 0 >fd0c: hard error reading fsbn 0 (No status) Does the following change help? Bruce diff -c2 fd.c~ fd.c *** fd.c~ Fri Feb 12 03:59:44 1999 --- fd.c Mon Mar 29 13:46:13 1999 *************** *** 1991,1996 **** * reset, so it has lost track of the current * cylinder. Recalibrate to handle this case. */ ! fdc->state = STARTRECAL; } return(1); /* will return immediatly */ --- 1991,1997 ---- * reset, so it has lost track of the current * cylinder. Recalibrate to handle this case. + * But first, discard the results of the reset. */ ! fdc->state = RESETCOMPLETE; } return(1); /* will return immediatly */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message