Remember to set the d_type field correctly

This commit is contained in:
Poul-Henning Kamp 1994-11-08 11:51:44 +00:00
parent 02006c7644
commit e0196256c7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4274

View File

@ -436,6 +436,12 @@ DiskLabel()
lbl->d_partitions[i].p_fstype = 0;
}
lbl->d_npartitions = MAXPARTITIONS;
if(Dname[diskno][0] == 's' && Dname[diskno][1] == 'd')
lbl->d_type = DTYPE_SCSI;
else
lbl->d_type = DTYPE_ST506;
while(!done) {
clear(); standend();
if (yip) {