summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1998-06-27 02:01:25 +0000
committerJohn Polstra <jdp@FreeBSD.org>1998-06-27 02:01:25 +0000
commitfd898ba100c3b3ec9a45a2b9391bcb4ffc06469c (patch)
tree168db6bfc1a6892041405e062fba588a73a43487
parentd9823e8a6d34c95475ec1d310d44ace95135da1c (diff)
Notes
-rw-r--r--lib/libdisk/write_disk.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libdisk/write_disk.c b/lib/libdisk/write_disk.c
index b810cf3d9a111..799c97da695e1 100644
--- a/lib/libdisk/write_disk.c
+++ b/lib/libdisk/write_disk.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id$
+ * $Id: write_disk.c,v 1.20 1997/02/22 15:06:40 peter Exp $
*
*/
@@ -87,7 +87,8 @@ Write_FreeBSD(int fd, struct disk *new, struct disk *old, struct chunk *c1)
dl->d_npartitions = MAXPARTITIONS;
- dl->d_type = new->name[0] == 's' ? DTYPE_SCSI : DTYPE_ESDI;
+ dl->d_type = new->name[0] == 's' || new->name[0] == 'd' ||
+ new->name[0] == 'o' ? DTYPE_SCSI : DTYPE_ESDI;
dl->d_partitions[RAW_PART].p_size = c1->size;
dl->d_partitions[RAW_PART].p_offset = c1->offset;