char data[data_size];
unsigned char sc;
+ if (lba == 0xffffffff) {
+ lba = random();
+ }
+
/* we only have 24 bit addresses in read 6 */
if (lba > 0x00ffffff) {
lba &= 0x00ffffff;
char data[data_size];
unsigned char sc;
+ if (lba == 0xffffffff) {
+ lba = random();
+ }
+
/* make sure we wrap properly instead of failing if the loadfile
is bigger than our device
*/
return;
}
+ if (lba == 0xffffffff) {
+ lba = random();
+ }
+
/* make sure we wrap properly instead of failing if the loadfile
is bigger than our device
*/
# timestamp TESTUNITREADY sense
0.000 TESTUNITREADY 0x00
#
+#
# timestamp READ6 lba #xferlen sense
+# if lba is 0xffffffff this means to use a random lba
0.000 READ6 0 1 0x00
#
+#
# timestamp READ10 lba #xferlen rd grp sense
-# rd is :
-# 3 bits 0xe0 : RDPROTECT
-# 1 bit 0x10 : DPO
-# 1 bit 0x08 : FUA
-# 1 bit 0x02 : FUA_NV
+# if lba is 0xffffffff this means to use a random lba
+#
+# rd is :
+# 3 bits 0xe0 : RDPROTECT
+# 1 bit 0x10 : DPO
+# 1 bit 0x08 : FUA
+# 1 bit 0x02 : FUA_NV
0.000 READ10 0 256 0 0 0x00
0.000 READ10 1000 256 0 0 0x00
0.000 READ10 2000 256 0 0 0x00
0.000 READ10 5000 256 0 0 0x00
#
+#
# timestamp READCAPACITY10 lba pmi(0/1) sense
0.000 READCAPACITY10 0 0 0x00
#
-# timestamp WRITE10 lba #xferlen FUAbits
+#
+# timestamp WRITE10 lba #xferlen FUAbits grp sense
+# WRITES are ignored by default and must be activated using --allow-scsi-writes
+#
+# if lba is 0xffffffff this means to use a random lba
+#
# FUAbits are cdb byte#1 in SBC:
# a value of 0x06 will force the data to be written to the medium
# a value of 0x00 allow the device to only write to nv-ram and not medium
-# WRITES are ignored by default and must be activated using --allow-scsi-writes
0.000 WRITE10 5000 1 0x06 0 0x00