Code: Select all
add_data_len(1); add_data_len(0); /*Sectors per track*/
Code: Select all
add_data_len(0); add_data_len(0x10); add_data_len(0); /*Cylinder count*/
add_data_len(64); /*Heads*/
1. It seems like the "Sectors", "Heads" and "Cylinders" could probably be returned fairly easily in the above code. I'm not aware of what software might actually send the SCSI command(s) to fetch those values though, and I doubt anyone cares about them returning the correct values, so I guess another option would be to just not prompt for those values.
2. I don't think the "Type" is meaningful at all and probably shouldn't be prompted for.
3. If "Sectors", "Heads" and "Cylinders" are still prompted for, it'd be nice if there was a note in the dialog pointing out that those values don't control what an operating system such as DOS sees when it makes BIOS calls, and that instead the geometry of the disk as presented to the operating system is controlled by the SCSI BIOS.
Is this something that is likely to get fixed, or if I tried fixing it myself is it likely that the patch would be accepted?