Experimental change to floppy driver to NOT probe the floppy tape if

flags & 0x1.  Somebody should build a kernel with this and see if
the floppy-tape damaged people can turn it off properly with userconfig.
I can't reproduce the original problem here.
This commit is contained in:
Jordan K. Hubbard 1994-11-29 15:46:20 +00:00
parent 1f36118a96
commit 8580379053
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4861
3 changed files with 21 additions and 6 deletions

View file

@ -40,7 +40,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
* $Id: fd.c,v 1.42 1994/11/08 06:34:04 ache Exp $
* $Id: fd.c,v 1.43 1994/11/18 10:18:36 phk Exp $
*
*/
@ -50,6 +50,9 @@
#endif
#include "fd.h"
/* Flags */
#define FT_DONT_PROBE 0x1
#if NFDC > 0
#include <sys/param.h>
@ -431,7 +434,9 @@ fdattach(dev)
#if NFT > 0
/* If BIOS says no floppy, or > 2nd device */
/* Probe for and attach a floppy tape. */
if (ftattach(dev, fdup))
if (dev->id_flags & FT_DONT_PROBE)
printf(" [fd%d: floppy tape not probed]", fdu);
else if (ftattach(dev, fdup))
continue;
if (fdsu < DRVS_PER_CTLR)
fd->type = NO_TYPE;

View file

@ -40,7 +40,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
* $Id: fd.c,v 1.42 1994/11/08 06:34:04 ache Exp $
* $Id: fd.c,v 1.43 1994/11/18 10:18:36 phk Exp $
*
*/
@ -50,6 +50,9 @@
#endif
#include "fd.h"
/* Flags */
#define FT_DONT_PROBE 0x1
#if NFDC > 0
#include <sys/param.h>
@ -431,7 +434,9 @@ fdattach(dev)
#if NFT > 0
/* If BIOS says no floppy, or > 2nd device */
/* Probe for and attach a floppy tape. */
if (ftattach(dev, fdup))
if (dev->id_flags & FT_DONT_PROBE)
printf(" [fd%d: floppy tape not probed]", fdu);
else if (ftattach(dev, fdup))
continue;
if (fdsu < DRVS_PER_CTLR)
fd->type = NO_TYPE;

View file

@ -40,7 +40,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
* $Id: fd.c,v 1.42 1994/11/08 06:34:04 ache Exp $
* $Id: fd.c,v 1.43 1994/11/18 10:18:36 phk Exp $
*
*/
@ -50,6 +50,9 @@
#endif
#include "fd.h"
/* Flags */
#define FT_DONT_PROBE 0x1
#if NFDC > 0
#include <sys/param.h>
@ -431,7 +434,9 @@ fdattach(dev)
#if NFT > 0
/* If BIOS says no floppy, or > 2nd device */
/* Probe for and attach a floppy tape. */
if (ftattach(dev, fdup))
if (dev->id_flags & FT_DONT_PROBE)
printf(" [fd%d: floppy tape not probed]", fdu);
else if (ftattach(dev, fdup))
continue;
if (fdsu < DRVS_PER_CTLR)
fd->type = NO_TYPE;