SCSI0.dat
SCSI0.cfg
no SCSI.dsc file
When opening the .dat file, a check is made if the .cfg file is present and it reads the parameters.
Subsequently,the LUN size is checked, but it is done using the .dsc file (in this case, it doesn't exist) when it should use the values already obtained from the .cfg file.
Defaults at this stage should be 256 bytes per sector, 33 sectors per track.
If ModePage4 is not present or invalid, the calculation isn't possible and it should try reading a .dsc file if present or make an assumption for the number of heads / cylinders given 256 bytes per sector and 33 sectors per track.
If ModePage4 is present
Number of Cylinders = valid ModePage4 Cylinders
Number of Heads = valid ModePage4 Heads
If ModePage3 is present
the default 256 bytes per sector can be overwritten by a valid value in ModePage3
the default 33 sectors per track can be overwritten by a valid value in ModePage3
File system: filesystemCheckLunDirectory(): LUN directory found
File system: filesystemCheckLunImage(): Checking for (.dat) LUN image 0
File system: filesystemCheckLunImage(): LUN image found
File system: filesystemCheckLunImage(): LUN size in bytes (according to .dat) = 63275776
filesystemReadFile: /BeebSCSI0/scsi0.cfg
Parsing /BeebSCSI0/scsi0.cfg File size 10443
Key not found
Key found Inquiry
00 00 00 00 31 20 20 20 52 4f 44 49 4d 45 20 20 52 4f 33 30 30 30 20 20 20 20 20 20 20 20 20 00 35 2e 34 36 00 00 00 9b 0d 24 24 01 20 85 80 18 07 03 85 00 00 ff 88 10 da a0 03 a9 ff 48 28 b1 6c 08 49 c3 28 99 03 32 08 49 c3 d9 18 32 f0 03 20 08 05 74 56 51 25 00 07 4c 00 00 20 85 74 88 10 da a0 03 a9
Key found ModeParamHeader
10 00 00 08
Key found LBADescriptor
00 00 00 00 00 00 01 00
Key found ModePage1
01 03 20 04 05
Key found ModePage3
03 13 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 c0
Key found ModePage4
04 04 00 02 c0 12
Key found ModePage32
20 08 30 30 30 30 30 30 30 30
Key found ModePage33
21 06 57 0a 0d 02 86 00 02
Key found ModePage35
23 01 00
Key found ModePage36
24 02 00 00
Key found ModePage37
25 06 28 43 29 41 0d 00
Key found ModePage38
26 06 63 6f 72 6e 0d 20
File system: filesystemCheckExtAttributes: LUN extended attributes file found
File system: filesystemCheckLunImage(): LUN size in bytes (according to cfg) = 0
File system: filesystemCheckLunImage(): WARNING: File size and cfg parameters are NOT consistent
The same for SCSI1.dat. However, when it reaches SCSI2.dat and SCSI3.dat, some values are filled in even though there is no .dsc file.
File system: filesystemCheckLunImage(): Checking for (.dat) LUN image 2
File system: filesystemCheckLunImage(): LUN image found
File system: filesystemCheckLunImage(): LUN size in bytes (according to .dat) = 40908800 (Correct)*
filesystemReadFile: /BeebSCSI0/scsi2.cfg
Parsing /BeebSCSI0/scsi2.cfg File size 7588
Key found Inquiry
...
Key found ModePage3
03 13 02 a8 02 a8 00 06 00 06 00 2f 01 00 00 08 00 00 00 00 80 ** 47 (0x2F) sectors, 256 bytes (0x0100) **
Key found ModePage4
04 04 00 02 a8 05 ** 680 cylinders, 5 heads **
...
File system: filesystemCheckExtAttributes: LUN extended attributes file found
File system: filesystemCheckLunImage(): LUN size in bytes (according to cfg) = ** 58258944 ** the correct value from the ,cfg should be 40908800
File system: filesystemCheckLunImage(): WARNING: File size and cfg parameters are NOT consistent
and again SCSI3.dat
File system: filesystemCheckLunImage(): Checking for (.dat) LUN image 3
File system: filesystemCheckLunImage(): LUN image found
File system: filesystemCheckLunImage(): LUN size in bytes (according to .dat) = 63168000
filesystemReadFile: /BeebSCSI0/scsi3.cfg
Parsing /BeebSCSI0/scsi3.cfg File size 7587
...
Key found ModePage3
03 13 02 ee 02 ee 00 06 00 06 00 2f 01 00 00 08 00 00 00 00 80
Key found ModePage4
04 04 00 02 ee 07
...
File system: filesystemCheckExtAttributes: LUN extended attributes file found
File system: filesystemCheckLunImage(): LUN size in bytes (according to cfg) = ** 89963264 **
File system: filesystemCheckLunImage(): WARNING: File size and cfg parameters are NOT consistent
SCSI0.dat
SCSI0.cfg
no SCSI.dsc file
When opening the .dat file, a check is made if the .cfg file is present and it reads the parameters.
Subsequently,the LUN size is checked, but it is done using the .dsc file (in this case, it doesn't exist) when it should use the values already obtained from the .cfg file.
Defaults at this stage should be 256 bytes per sector, 33 sectors per track.
If ModePage4 is not present or invalid, the calculation isn't possible and it should try reading a .dsc file if present or make an assumption for the number of heads / cylinders given 256 bytes per sector and 33 sectors per track.
If ModePage4 is present
Number of Cylinders = valid ModePage4 Cylinders
Number of Heads = valid ModePage4 Heads
If ModePage3 is present
the default 256 bytes per sector can be overwritten by a valid value in ModePage3
the default 33 sectors per track can be overwritten by a valid value in ModePage3
File system: filesystemCheckLunDirectory(): LUN directory found
File system: filesystemCheckLunImage(): Checking for (.dat) LUN image 0
File system: filesystemCheckLunImage(): LUN image found
File system: filesystemCheckLunImage(): LUN size in bytes (according to .dat) = 63275776
filesystemReadFile: /BeebSCSI0/scsi0.cfg
Parsing /BeebSCSI0/scsi0.cfg File size 10443
Key not found
Key found Inquiry
00 00 00 00 31 20 20 20 52 4f 44 49 4d 45 20 20 52 4f 33 30 30 30 20 20 20 20 20 20 20 20 20 00 35 2e 34 36 00 00 00 9b 0d 24 24 01 20 85 80 18 07 03 85 00 00 ff 88 10 da a0 03 a9 ff 48 28 b1 6c 08 49 c3 28 99 03 32 08 49 c3 d9 18 32 f0 03 20 08 05 74 56 51 25 00 07 4c 00 00 20 85 74 88 10 da a0 03 a9
Key found ModeParamHeader
10 00 00 08
Key found LBADescriptor
00 00 00 00 00 00 01 00
Key found ModePage1
01 03 20 04 05
Key found ModePage3
03 13 00 00 00 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 c0
Key found ModePage4
04 04 00 02 c0 12
Key found ModePage32
20 08 30 30 30 30 30 30 30 30
Key found ModePage33
21 06 57 0a 0d 02 86 00 02
Key found ModePage35
23 01 00
Key found ModePage36
24 02 00 00
Key found ModePage37
25 06 28 43 29 41 0d 00
Key found ModePage38
26 06 63 6f 72 6e 0d 20
File system: filesystemCheckExtAttributes: LUN extended attributes file found
File system: filesystemCheckLunImage(): LUN size in bytes (according to cfg) = 0
File system: filesystemCheckLunImage(): WARNING: File size and cfg parameters are NOT consistent
The same for SCSI1.dat. However, when it reaches SCSI2.dat and SCSI3.dat, some values are filled in even though there is no .dsc file.
File system: filesystemCheckLunImage(): Checking for (.dat) LUN image 2
File system: filesystemCheckLunImage(): LUN image found
File system: filesystemCheckLunImage(): LUN size in bytes (according to .dat) = 40908800 (Correct)*
filesystemReadFile: /BeebSCSI0/scsi2.cfg
Parsing /BeebSCSI0/scsi2.cfg File size 7588
Key found Inquiry
...
Key found ModePage3
03 13 02 a8 02 a8 00 06 00 06 00 2f 01 00 00 08 00 00 00 00 80 ** 47 (0x2F) sectors, 256 bytes (0x0100) **
Key found ModePage4
04 04 00 02 a8 05 ** 680 cylinders, 5 heads **
...
File system: filesystemCheckExtAttributes: LUN extended attributes file found
File system: filesystemCheckLunImage(): LUN size in bytes (according to cfg) = ** 58258944 ** the correct value from the ,cfg should be 40908800
File system: filesystemCheckLunImage(): WARNING: File size and cfg parameters are NOT consistent
and again SCSI3.dat
File system: filesystemCheckLunImage(): Checking for (.dat) LUN image 3
File system: filesystemCheckLunImage(): LUN image found
File system: filesystemCheckLunImage(): LUN size in bytes (according to .dat) = 63168000
filesystemReadFile: /BeebSCSI0/scsi3.cfg
Parsing /BeebSCSI0/scsi3.cfg File size 7587
...
Key found ModePage3
03 13 02 ee 02 ee 00 06 00 06 00 2f 01 00 00 08 00 00 00 00 80
Key found ModePage4
04 04 00 02 ee 07
...
File system: filesystemCheckExtAttributes: LUN extended attributes file found
File system: filesystemCheckLunImage(): LUN size in bytes (according to cfg) = ** 89963264 **
File system: filesystemCheckLunImage(): WARNING: File size and cfg parameters are NOT consistent