mirror of
https://github.com/erichelgeson/BlueSCSI.git
synced 2024-12-23 04:29:44 +00:00
Add back LUN filename parsing
This commit is contained in:
parent
408e155a63
commit
c5447a4098
@ -620,6 +620,18 @@ void findDriveImages(FsFile root) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(file_name_length > 3) { // HDN[N]
|
||||||
|
int tmp_lun = name[HDIMG_LUN_POS] - '0';
|
||||||
|
|
||||||
|
// If valid lun, set it, else use default
|
||||||
|
if(tmp_lun == 0 || tmp_lun == 1) {
|
||||||
|
lun = tmp_lun;
|
||||||
|
} else {
|
||||||
|
LOG_FILE.print(name);
|
||||||
|
LOG_FILE.println(" - bad SCSI LUN in filename, Using default LUN ID 0");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int blk1 = 0, blk2, blk3, blk4 = 0;
|
int blk1 = 0, blk2, blk3, blk4 = 0;
|
||||||
if(file_name_length > 8) { // HD00_[111]
|
if(file_name_length > 8) { // HD00_[111]
|
||||||
blk1 = name[HDIMG_BLK_POS] - '0';
|
blk1 = name[HDIMG_BLK_POS] - '0';
|
||||||
|
Loading…
Reference in New Issue
Block a user