mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-02 08:42:48 +00:00
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.
This commit is contained in:
parent
d9823e8a6d
commit
fd898ba100
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37179
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user