Update README.md

This commit is contained in:
Le Zhang
2016-10-18 17:04:06 +08:00
committed by GitHub
parent 92e437cd06
commit 39a9e7ac67
+16 -5
View File
@@ -20,20 +20,31 @@ Currenty, there is lack of commands to operate the target and LU, however you ca
``` ```
{ {
"storages": [ "storages":[
{ {
"deviceID":1000, "deviceID":1000,
"path":"file:/var/tmp/disk.img", "path":"file:/var/tmp/disk.img",
"online":true "online":true
} }
], ],
"targets": { "iscsiportals":[
"test-iscsi-target": { {
"name": "iqn.2016-09.com.gotgt.gostor:example_tgt_0", "id":0,
"luns": {"0": 1000} "portal":"127.0.0.1:3260"
}
],
"iscsitargets":{
"iqn.2016-09.com.gotgt.gostor:02:example-tgt-0":{
"tpgts":{
"1":[0]
},
"luns":{
"0":1000
}
} }
} }
} }
``` ```
> Note: make sure file `/var/tmp/disk.img` is existed, you can use `dd` to create it. > Note: make sure file `/var/tmp/disk.img` is existed, you can use `dd` to create it.