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

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) {