From 33f78efe0fa13019c31b0f6a8ce3665c0eaeaa60 Mon Sep 17 00:00:00 2001 From: Lei Xue Date: Sun, 11 Dec 2016 21:04:40 +0800 Subject: [PATCH] add examples directory --- .gitignore | 1 - examples/config.json | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 examples/config.json diff --git a/.gitignore b/.gitignore index b3c13ee..87b28bf 100644 --- a/.gitignore +++ b/.gitignore @@ -44,5 +44,4 @@ _testmain.go .idea /gotgt *.out -examples/* *.bak diff --git a/examples/config.json b/examples/config.json new file mode 100644 index 0000000..2143c2b --- /dev/null +++ b/examples/config.json @@ -0,0 +1,25 @@ +{ + "storages":[ + { + "deviceID":1000, + "path":"file:/var/tmp/disk.img", + "online":true + } + ], + "iscsiportals":[ + { + "id":0, + "portal":"127.0.0.1:3260" + } + ], + "iscsitargets":{ + "iqn.2016-09.com.gotgt.gostor:02:example-tgt-0":{ + "tpgts":{ + "1":[0] + }, + "luns":{ + "0":1000 + } + } + } +}