Skip to content

Commit

Permalink
Fix IMGx=filename ignoring device type
Browse files Browse the repository at this point in the history
This fixes an issue when there is an entry like this in `zuluscsi.ini`
```
[SCSI3]
IMG0="my_cd.iso"
Type = 2 # CD-ROM type
```
The image type in that particular code path wasn't set and sector
length was incorrectly being set to 512B instead of 2048B.
  • Loading branch information
morio committed Feb 1, 2024
1 parent a84f163 commit 8887c12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ZuluSCSI_disk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@ int scsiDiskGetNextImageName(image_config_t &img, char *buf, size_t buflen)
int ret = ini_gets(section, key, "", buf, buflen, CONFIGFILE);
if (buf[0] != '\0')
{
img.deviceType = g_scsi_settings.getDevice(target_idx)->deviceType;
return ret;
}
else if (img.image_index > 0)
Expand Down

0 comments on commit 8887c12

Please sign in to comment.