On 07/31/2018 10:44 AM, clem(a)lse.epita.fr wrote:
From: Clementine Hayat <clem(a)lse.epita.fr>
Introducing the pool as a noop. Integration inside the build
system. Implementation will be in the following commits.
Signed-off-by: Clementine Hayat <clem(a)lse.epita.fr>
---
configure.ac | 6 +-
docs/schemas/storagepool.rng | 35 +++++++++++
docs/storage.html.in | 30 ++++++++++
m4/virt-storage-iscsi-direct.m4 | 41 +++++++++++++
src/conf/domain_conf.c | 1 +
src/conf/storage_conf.c | 22 +++++--
src/conf/storage_conf.h | 1 +
src/conf/virstorageobj.c | 2 +
src/storage/Makefile.inc.am | 22 +++++++
src/storage/storage_backend.c | 6 ++
src/storage/storage_backend_iscsi_direct.c | 58 +++++++++++++++++++
src/storage/storage_backend_iscsi_direct.h | 6 ++
src/storage/storage_driver.c | 1 +
.../pool-iscsi-direct-auth.xml | 14 +++++
.../pool-iscsi-direct.xml | 12 ++++
.../pool-iscsi-direct-auth.xml | 17 ++++++
.../pool-iscsi-direct.xml | 14 +++++
tests/storagepoolxml2xmltest.c | 2 +
tools/virsh-pool.c | 3 +
19 files changed, 287 insertions(+), 6 deletions(-)
create mode 100644 m4/virt-storage-iscsi-direct.m4
create mode 100644 src/storage/storage_backend_iscsi_direct.c
create mode 100644 src/storage/storage_backend_iscsi_direct.h
create mode 100644 tests/storagepoolxml2xmlin/pool-iscsi-direct-auth.xml
create mode 100644 tests/storagepoolxml2xmlin/pool-iscsi-direct.xml
create mode 100644 tests/storagepoolxml2xmlout/pool-iscsi-direct-auth.xml
create mode 100644 tests/storagepoolxml2xmlout/pool-iscsi-direct.xml
diff --git a/tests/storagepoolxml2xmlin/pool-iscsi-direct.xml
b/tests/storagepoolxml2xmlin/pool-iscsi-direct.xml
new file mode 100644
index 0000000000..9a0014bf42
--- /dev/null
+++ b/tests/storagepoolxml2xmlin/pool-iscsi-direct.xml
@@ -0,0 +1,12 @@
+<pool type="iscsi-direct">
+ <name>iscsi-direct</name>
+ <uuid>034d66fc-f507-437a-b552-c479ffd63819</uuid>
+ <source>
+ <host name="iscsi.example.com"/>
+ <device path="iqn.2013-06.com.example:iscsi-pool"/>
+ <initiator>
+ <iqn name='iqn.2013-06.com.example:iscsi-initiator'/>
+ </initiator>
+ </source>
+</pool>
+
Empty line at EOF.
Michal