diff options
Diffstat (limited to 'sys/scsi/sd.c')
-rw-r--r-- | sys/scsi/sd.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index 55cf4821a2f..fcda755c91e 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sd.c,v 1.15 1996/06/16 03:07:21 downsj Exp $ */ +/* $OpenBSD: sd.c,v 1.16 1996/07/11 22:17:46 pefo Exp $ */ /* $NetBSD: sd.c,v 1.100.4.1 1996/06/04 23:14:08 thorpej Exp $ */ /* @@ -64,6 +64,7 @@ #include <sys/disk.h> #include <sys/proc.h> #include <sys/conf.h> +#include <sys/scsiio.h> #include <scsi/scsi_all.h> #include <scsi/scsi_disk.h> @@ -747,6 +748,12 @@ sdioctl(dev, cmd, addr, flag, p) sd->sc_link->flags |= SDEV_EJECTING; return 0; + case SCIOCREASSIGN: + if ((flag & FWRITE) == 0) + return EBADF; + error = sd_reassign_blocks(sd, *(*(int **)addr)); + return error; + default: if (SDPART(dev) != RAW_PART) return ENOTTY; |