PROUT example in iscsi.txt loadfile
authorBreno Leitao <leitao@linux.vnet.ibm.com>
Fri, 26 Feb 2010 20:12:23 +0000 (17:12 -0300)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 8 Mar 2010 17:16:11 +0000 (04:16 +1100)
A simple example that shows the PROUT command in action

Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
loadfiles/iscsi.txt

index 073594c977f1312d4b73f547457a06edab3b33a2..49a9e95c5d4a020bd6b0e5dcd35e505c9579e23f 100644 (file)
 #
 # timestamp READCAPACITY10 lba pmi(0/1) sense
 0.000 READCAPACITY10 0 0 0x00
+
+# Reservation:
+# PROUT  <service action> <type> <key> <sa-key>
+
+# Register
+0.000 PROUT 0  0          0 0xdeadbeef 0x00
+# Reserve (type = 1)
+0.000 PROUT 1  1 0xdeadbeef          0 0x00
+# Reservation conflict (type = 3)
+0.000 PROUT 1  3 0xdeadbeef          0 0x18
+# Reservation conflict (type = 5)
+0.000 PROUT 1  5 0xdeadbeef          0 0x18
+# Release (type = 1)
+0.000 PROUT 2  1 0xdeadbeef          0 0x00
+# Reservation OK now (type = 3)
+0.000 PROUT 1  3 0xdeadbeef          0 0x00
+# Release (type = 3)
+0.000 PROUT 2  3 0xdeadbeef          0 0x00
+# Unregister
+0.000 PROUT 0  0 0xdeadbeef          0 0x00