diff options
author | jdp <jdp@FreeBSD.org> | 1998-06-27 02:01:25 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 1998-06-27 02:01:25 +0000 |
commit | 4c0dd08a5a679d634b3a12f30a736d71a366f6c3 (patch) | |
tree | 837bfd73fe32c4e852413d9a141486f7801d431b /lib | |
parent | a0edc31f41ae49dcbcfca359d5337984b7d31e7c (diff) | |
download | FreeBSD-src-4c0dd08a5a679d634b3a12f30a736d71a366f6c3.zip FreeBSD-src-4c0dd08a5a679d634b3a12f30a736d71a366f6c3.tar.gz |
Extend the existing hackery to set the disk type to SCSI for the
"da" and "od" devices. Formerly ESDI was used for them, causing
problems for fresh installations of CAM systems.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libdisk/write_disk.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libdisk/write_disk.c b/lib/libdisk/write_disk.c index b810cf3..799c97d 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; |