diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c index 61e385f9411e..8dd7314abf40 100644 --- a/sys/dev/fdc/fdc.c +++ b/sys/dev/fdc/fdc.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)fd.c 7.4 (Berkeley) 5/25/91 - * $Id: fd.c,v 1.27 1994/08/13 03:49:57 wollman Exp $ + * $Id: fd.c,v 1.28 1994/08/23 07:52:09 paul Exp $ * */ @@ -71,6 +71,8 @@ extern int ftopen(), ftintr(), ftattach(), ftclose(), ftioctl(); #endif +#define RAW_PART 2 + #define b_cylin b_resid #define FDBLK 512 @@ -1066,7 +1068,7 @@ retrier(fdcu) { dev_t sav_b_dev = bp->b_dev; /* Trick diskerr */ - bp->b_dev = makedev(major(bp->b_dev), (FDUNIT(minor(bp->b_dev))<<3)|3); + bp->b_dev = makedev(major(bp->b_dev), (FDUNIT(minor(bp->b_dev))<<3)|RAW_PART); diskerr(bp, "fd", "hard error", LOG_PRINTF, fdc->fd->skip, (struct disklabel *)NULL); bp->b_dev = sav_b_dev; diff --git a/sys/i386/isa/fd.c b/sys/i386/isa/fd.c index 61e385f9411e..8dd7314abf40 100644 --- a/sys/i386/isa/fd.c +++ b/sys/i386/isa/fd.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)fd.c 7.4 (Berkeley) 5/25/91 - * $Id: fd.c,v 1.27 1994/08/13 03:49:57 wollman Exp $ + * $Id: fd.c,v 1.28 1994/08/23 07:52:09 paul Exp $ * */ @@ -71,6 +71,8 @@ extern int ftopen(), ftintr(), ftattach(), ftclose(), ftioctl(); #endif +#define RAW_PART 2 + #define b_cylin b_resid #define FDBLK 512 @@ -1066,7 +1068,7 @@ retrier(fdcu) { dev_t sav_b_dev = bp->b_dev; /* Trick diskerr */ - bp->b_dev = makedev(major(bp->b_dev), (FDUNIT(minor(bp->b_dev))<<3)|3); + bp->b_dev = makedev(major(bp->b_dev), (FDUNIT(minor(bp->b_dev))<<3)|RAW_PART); diskerr(bp, "fd", "hard error", LOG_PRINTF, fdc->fd->skip, (struct disklabel *)NULL); bp->b_dev = sav_b_dev; diff --git a/sys/isa/fd.c b/sys/isa/fd.c index 61e385f9411e..8dd7314abf40 100644 --- a/sys/isa/fd.c +++ b/sys/isa/fd.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)fd.c 7.4 (Berkeley) 5/25/91 - * $Id: fd.c,v 1.27 1994/08/13 03:49:57 wollman Exp $ + * $Id: fd.c,v 1.28 1994/08/23 07:52:09 paul Exp $ * */ @@ -71,6 +71,8 @@ extern int ftopen(), ftintr(), ftattach(), ftclose(), ftioctl(); #endif +#define RAW_PART 2 + #define b_cylin b_resid #define FDBLK 512 @@ -1066,7 +1068,7 @@ retrier(fdcu) { dev_t sav_b_dev = bp->b_dev; /* Trick diskerr */ - bp->b_dev = makedev(major(bp->b_dev), (FDUNIT(minor(bp->b_dev))<<3)|3); + bp->b_dev = makedev(major(bp->b_dev), (FDUNIT(minor(bp->b_dev))<<3)|RAW_PART); diskerr(bp, "fd", "hard error", LOG_PRINTF, fdc->fd->skip, (struct disklabel *)NULL); bp->b_dev = sav_b_dev;