From nobody Fri May 3 17:12:09 2024
Delivered-To: importer@patchew.org
Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28
as permitted sender) client-ip=209.132.183.28;
envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com;
Authentication-Results: mx.zohomail.com;
spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com
Return-Path:
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by
mx.zohomail.com
with SMTPS id 1533456589140951.190235540208;
Sun, 5 Aug 2018 01:09:49 -0700 (PDT)
Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com
[10.5.11.15])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by mx1.redhat.com (Postfix) with ESMTPS id 44385155DD;
Sun, 5 Aug 2018 08:09:47 +0000 (UTC)
Received: from colo-mx.corp.redhat.com
(colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21])
by smtp.corp.redhat.com (Postfix) with ESMTPS id 0A2FB17596;
Sun, 5 Aug 2018 08:09:47 +0000 (UTC)
Received: from lists01.pubmisc.prod.ext.phx2.redhat.com
(lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33])
by colo-mx.corp.redhat.com (Postfix) with ESMTP id B74FC264FC;
Sun, 5 Aug 2018 08:09:46 +0000 (UTC)
Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com
[10.5.11.16])
by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
id w6V8jBTS027395 for ;
Tue, 31 Jul 2018 04:45:11 -0400
Received: by smtp.corp.redhat.com (Postfix)
id 6C672177FE; Tue, 31 Jul 2018 08:45:11 +0000 (UTC)
Received: from mx1.redhat.com (ext-mx08.extmail.prod.ext.phx2.redhat.com
[10.5.110.32])
by smtp.corp.redhat.com (Postfix) with ESMTPS id 0331517B0E;
Tue, 31 Jul 2018 08:45:01 +0000 (UTC)
Received: from mail-wr1-f67.google.com (mail-wr1-f67.google.com
[209.85.221.67])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by mx1.redhat.com (Postfix) with ESMTPS id B3BE1C057F93;
Tue, 31 Jul 2018 08:44:59 +0000 (UTC)
Received: by mail-wr1-f67.google.com with SMTP id h9-v6so15736079wro.3;
Tue, 31 Jul 2018 01:44:59 -0700 (PDT)
Received: from clem.localdomain ([2a01:e34:ec25:e330:f2d5:bfff:fe6e:3278])
by smtp.gmail.com with ESMTPSA id
s2-v6sm25103775wrn.83.2018.07.31.01.44.56
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Tue, 31 Jul 2018 01:44:57 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
:references;
bh=g/k6SgSMmUUkWk1DNvM0nHjp7LKlrsBgDWsEkcV42bY=;
b=IqB0dN4LX1hHIVdhcpbc6+4Erw2dfWEwasoALyfNeu4Flublr1mIT+EqLRwVWJMF2F
/UDTdSXKbofHL7C2yT8ePky8WqaSFCtZsfcvZrkDSP+h8n/ZJk2baJE/dCCwGxhUsi3o
52ymHY+sk2cvuTjAqZBUuMaJPTLNAk6AqnE/nKYsJ7neAx75uxXzkF09QP8wKHVRfqRV
CZgNVMRinf4qNuOgiC4SAMMN6W8IG5mFn6uo1S1wUT6lzMrnHK2Nws/nKegDWRGPjBGZ
RE10Ii5yg0IHu29a9yyvuSBm3UIB6dZxcL0Ut44Ljm/mBgMzy38y7m1r3HnkwjoYAITv
2TbA==
X-Gm-Message-State: AOUpUlE5Jfzp0ai25n7EzO46o3GVTi4IgovTaB9fyD8V7mg5xodOQr9H
MzC9yCXQTX3DWEt7DNt4Ggv1cm5xBDU=
X-Google-Smtp-Source:
AAOMgpf4vwcj529d8rxGYhTxoaRVEpVmeRyjF/n3wPuSy2HP/QC0Ruy9DI3Lm8n3Kokx4BR8dilRFA==
X-Received: by 2002:adf:dc4c:: with SMTP id
m12-v6mr21184208wrj.84.1533026698077;
Tue, 31 Jul 2018 01:44:58 -0700 (PDT)
From: clem@lse.epita.fr
To: mprivozn@redhat.com, phrdina@redhat.com, libvir-list@redhat.com
Date: Tue, 31 Jul 2018 10:44:20 +0200
Message-Id: <20180731084423.8607-2-clem@lse.epita.fr>
In-Reply-To: <20180731084423.8607-1-clem@lse.epita.fr>
References: <20180731084423.8607-1-clem@lse.epita.fr>
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16
(mx1.redhat.com [10.5.110.32]);
Tue, 31 Jul 2018 08:44:59 +0000 (UTC)
X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com
[10.5.110.32]);
Tue, 31 Jul 2018 08:44:59 +0000 (UTC) for IP:'209.85.221.67'
DOMAIN:'mail-wr1-f67.google.com' HELO:'mail-wr1-f67.google.com'
FROM:'clementinehayat@gmail.com' RCPT:''
X-RedHat-Spam-Score: -0.009 (FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,
HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,
RCVD_IN_MSPIKE_H2,
SPF_PASS) 209.85.221.67 mail-wr1-f67.google.com 209.85.221.67
mail-wr1-f67.google.com
X-Scanned-By: MIMEDefang 2.78 on 10.5.110.32
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16
X-loop: libvir-list@redhat.com
Cc: Clementine Hayat
Subject: [libvirt] [PATCH v3 1/4] configure: Introduce libiscsi in build
system
X-BeenThere: libvir-list@redhat.com
X-Mailman-Version: 2.1.12
Precedence: junk
List-Id: Development discussions about the libvirt library & tools
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Sender: libvir-list-bounces@redhat.com
Errors-To: libvir-list-bounces@redhat.com
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15
X-Greylist: Sender IP whitelisted,
not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]);
Sun, 05 Aug 2018 08:09:47 +0000 (UTC)
X-ZohoMail: RSF_0 Z_629925259 SPT_0
Content-Type: text/plain; charset="utf-8"
From: Clementine Hayat
The minimal required version is 1.18.0 because the synchrounous function
needed were introduced here.
Signed-off-by: Clementine Hayat
---
configure.ac | 3 +++
m4/virt-libiscsi.m4 | 30 ++++++++++++++++++++++++++++++
2 files changed, 33 insertions(+)
create mode 100644 m4/virt-libiscsi.m4
diff --git a/configure.ac b/configure.ac
index c6287f656a..0b682349f6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -251,6 +251,7 @@ LIBVIRT_ARG_FUSE
LIBVIRT_ARG_GLUSTER
LIBVIRT_ARG_HAL
LIBVIRT_ARG_JANSSON
+LIBVIRT_ARG_LIBISCSI
LIBVIRT_ARG_LIBPCAP
LIBVIRT_ARG_LIBSSH
LIBVIRT_ARG_LIBXML
@@ -292,6 +293,7 @@ LIBVIRT_CHECK_GLUSTER
LIBVIRT_CHECK_GNUTLS
LIBVIRT_CHECK_HAL
LIBVIRT_CHECK_JANSSON
+LIBVIRT_CHECK_LIBISCSI
LIBVIRT_CHECK_LIBNL
LIBVIRT_CHECK_LIBPARTED
LIBVIRT_CHECK_LIBPCAP
@@ -973,6 +975,7 @@ LIBVIRT_RESULT_GLUSTER
LIBVIRT_RESULT_GNUTLS
LIBVIRT_RESULT_HAL
LIBVIRT_RESULT_JANSSON
+LIBVIRT_RESULT_LIBISCSI
LIBVIRT_RESULT_LIBNL
LIBVIRT_RESULT_LIBPCAP
LIBVIRT_RESULT_LIBSSH
diff --git a/m4/virt-libiscsi.m4 b/m4/virt-libiscsi.m4
new file mode 100644
index 0000000000..2747f00ec4
--- /dev/null
+++ b/m4/virt-libiscsi.m4
@@ -0,0 +1,30 @@
+dnl Libiscsi library
+dnl
+dnl Copyright (C) 2018 Clementine Hayat.
+dnl
+dnl This library is free software; you can redistribute it and/or
+dnl modify it under the terms of the GNU Lesser General Public
+dnl License as published by the Free Software Foundation; either
+dnl version 2.1 of the License, or (at your option) any later version.
+dnl
+dnl This library is distributed in the hope that it will be useful,
+dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+dnl Lesser General Public License for more details.
+dnl
+dnl You should have received a copy of the GNU Lesser General Public
+dnl License along with this library. If not, see
+dnl .
+dnl
+
+AC_DEFUN([LIBVIRT_ARG_LIBISCSI],[
+ LIBVIRT_ARG_WITH_FEATURE([LIBISCSI], [libiscsi], [check], [1.18.0])
+])
+
+AC_DEFUN([LIBVIRT_CHECK_LIBISCSI],[
+ LIBVIRT_CHECK_PKG([LIBISCSI], [libiscsi], [1.18.0])
+])
+
+AC_DEFUN([LIBVIRT_RESULT_LIBISCSI],[
+ LIBVIRT_RESULT_LIB(LIBISCSI)
+])
--=20
2.18.0
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
From nobody Fri May 3 17:12:09 2024
Delivered-To: importer@patchew.org
Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28
as permitted sender) client-ip=209.132.183.28;
envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com;
Authentication-Results: mx.zohomail.com;
spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com
Return-Path:
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by
mx.zohomail.com
with SMTPS id 1533456596880763.374266570979;
Sun, 5 Aug 2018 01:09:56 -0700 (PDT)
Received: from smtp.corp.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com
[10.5.11.27])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by mx1.redhat.com (Postfix) with ESMTPS id 366E8C049D5C;
Sun, 5 Aug 2018 08:09:55 +0000 (UTC)
Received: from colo-mx.corp.redhat.com
(colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21])
by smtp.corp.redhat.com (Postfix) with ESMTPS id 01DB3D555C;
Sun, 5 Aug 2018 08:09:55 +0000 (UTC)
Received: from lists01.pubmisc.prod.ext.phx2.redhat.com
(lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33])
by colo-mx.corp.redhat.com (Postfix) with ESMTP id AE16624F65;
Sun, 5 Aug 2018 08:09:54 +0000 (UTC)
Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com
[10.5.11.11])
by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
id w6V8jIH1027414 for ;
Tue, 31 Jul 2018 04:45:18 -0400
Received: by smtp.corp.redhat.com (Postfix)
id 9E49D600C9; Tue, 31 Jul 2018 08:45:18 +0000 (UTC)
Received: from mx1.redhat.com (ext-mx09.extmail.prod.ext.phx2.redhat.com
[10.5.110.38])
by smtp.corp.redhat.com (Postfix) with ESMTPS id 481BB600C5;
Tue, 31 Jul 2018 08:45:11 +0000 (UTC)
Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com
[74.125.82.51])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by mx1.redhat.com (Postfix) with ESMTPS id 642FC4DD49;
Tue, 31 Jul 2018 08:45:03 +0000 (UTC)
Received: by mail-wm0-f51.google.com with SMTP id y9-v6so2191839wma.5;
Tue, 31 Jul 2018 01:45:03 -0700 (PDT)
Received: from clem.localdomain ([2a01:e34:ec25:e330:f2d5:bfff:fe6e:3278])
by smtp.gmail.com with ESMTPSA id
s2-v6sm25103775wrn.83.2018.07.31.01.45.00
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Tue, 31 Jul 2018 01:45:00 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
:references;
bh=m2KczySjWF2uPc6HMQzm2Ui20XtxCqSop/eLGOyF8fw=;
b=d+CaWh1w77y6m1apHTJ8ImxhPKAxVxxZpbhC/NazQgtv2nvvFv3bmFv1mx4jnxCg4X
HBNRkCHSc+9XsrOsACt+zMoIqXOKS6YGwWaacO7CGhFpgIVqZTi3bPLsOl+6mjomRNxE
mwYx6JRb4edSnKwBuYIb3il9UhueCWW/vaRl0w0aH/NQuP9/crcZ2bw9fvLBP5xIQPsd
EQXutdBdlXWv0Szio6oVNpW40JfOynkvxlOdAKkypWaLwzMgapdqWw+E/90eI13rb87v
5g6C3ZLdbmLU+Oq+xxoR311OC7pLKu0xEWo8YrV3nQ5ZqpBGxojkHIx4iPOxTmYl7WFs
9JXQ==
X-Gm-Message-State: AOUpUlEadWRZcbdITt0mw1y5IYs3EVSFYwpAGkBKklr1W2odrqAVldkv
gShGCu4BW/jVqaagLiz8gN6lOL9c9XQ=
X-Google-Smtp-Source:
AAOMgpc6RVNu8Jg+BYEerBD033YjdKj/05Kwr6mSTAzSNRFNUAGgXovsRfX8TKCw/ny5tB/yDFBYMw==
X-Received: by 2002:a1c:7c13:: with SMTP id
x19-v6mr1712386wmc.27.1533026701544;
Tue, 31 Jul 2018 01:45:01 -0700 (PDT)
From: clem@lse.epita.fr
To: mprivozn@redhat.com, phrdina@redhat.com, libvir-list@redhat.com
Date: Tue, 31 Jul 2018 10:44:21 +0200
Message-Id: <20180731084423.8607-3-clem@lse.epita.fr>
In-Reply-To: <20180731084423.8607-1-clem@lse.epita.fr>
References: <20180731084423.8607-1-clem@lse.epita.fr>
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16
(mx1.redhat.com [10.5.110.38]);
Tue, 31 Jul 2018 08:45:04 +0000 (UTC)
X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com
[10.5.110.38]);
Tue, 31 Jul 2018 08:45:04 +0000 (UTC) for IP:'74.125.82.51'
DOMAIN:'mail-wm0-f51.google.com' HELO:'mail-wm0-f51.google.com'
FROM:'clementinehayat@gmail.com' RCPT:''
X-RedHat-Spam-Score: -0.028 (FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,
HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,
RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,
SPF_PASS) 74.125.82.51 mail-wm0-f51.google.com 74.125.82.51
mail-wm0-f51.google.com
X-Scanned-By: MIMEDefang 2.78 on 10.5.110.38
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11
X-loop: libvir-list@redhat.com
Cc: Clementine Hayat
Subject: [libvirt] [PATCH v3 2/4] storage: Introduce iscsi_direct pool type
X-BeenThere: libvir-list@redhat.com
X-Mailman-Version: 2.1.12
Precedence: junk
List-Id: Development discussions about the libvirt library & tools
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Sender: libvir-list-bounces@redhat.com
Errors-To: libvir-list-bounces@redhat.com
X-Scanned-By: MIMEDefang 2.84 on 10.5.11.27
X-Greylist: Sender IP whitelisted,
not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]);
Sun, 05 Aug 2018 08:09:55 +0000 (UTC)
X-ZohoMail: RSF_0 Z_629925259 SPT_0
Content-Type: text/plain; charset="utf-8"
From: Clementine Hayat
Introducing the pool as a noop. Integration inside the build
system. Implementation will be in the following commits.
Signed-off-by: Clementine Hayat
---
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/configure.ac b/configure.ac
index 0b682349f6..bd7de04a44 100644
--- a/configure.ac
+++ b/configure.ac
@@ -566,6 +566,7 @@ LIBVIRT_STORAGE_ARG_DIR
LIBVIRT_STORAGE_ARG_FS
LIBVIRT_STORAGE_ARG_LVM
LIBVIRT_STORAGE_ARG_ISCSI
+LIBVIRT_STORAGE_ARG_ISCSI_DIRECT
LIBVIRT_STORAGE_ARG_SCSI
LIBVIRT_STORAGE_ARG_MPATH
LIBVIRT_STORAGE_ARG_DISK
@@ -580,6 +581,7 @@ if test "$with_libvirtd" =3D "no"; then
with_storage_fs=3Dno
with_storage_lvm=3Dno
with_storage_iscsi=3Dno
+ with_storage_iscsi_direct=3Dno
with_storage_scsi=3Dno
with_storage_mpath=3Dno
with_storage_disk=3Dno
@@ -600,6 +602,7 @@ LIBVIRT_STORAGE_CHECK_DIR
LIBVIRT_STORAGE_CHECK_FS
LIBVIRT_STORAGE_CHECK_LVM
LIBVIRT_STORAGE_CHECK_ISCSI
+LIBVIRT_STORAGE_CHECK_ISCSI_DIRECT
LIBVIRT_STORAGE_CHECK_SCSI
LIBVIRT_STORAGE_CHECK_MPATH
LIBVIRT_STORAGE_CHECK_DISK
@@ -610,7 +613,7 @@ LIBVIRT_STORAGE_CHECK_ZFS
LIBVIRT_STORAGE_CHECK_VSTORAGE
=20
with_storage=3Dno
-for backend in dir fs lvm iscsi scsi mpath rbd disk; do
+for backend in dir fs lvm iscsi iscsi_direct scsi mpath rbd disk; do
if eval test \$with_storage_$backend =3D yes; then
with_storage=3Dyes
break
@@ -938,6 +941,7 @@ LIBVIRT_STORAGE_RESULT_DIR
LIBVIRT_STORAGE_RESULT_FS
LIBVIRT_STORAGE_RESULT_LVM
LIBVIRT_STORAGE_RESULT_ISCSI
+LIBVIRT_STORAGE_RESULT_ISCSI_DIRECT
LIBVIRT_STORAGE_RESULT_SCSI
LIBVIRT_STORAGE_RESULT_MPATH
LIBVIRT_STORAGE_RESULT_DISK
diff --git a/docs/schemas/storagepool.rng b/docs/schemas/storagepool.rng
index 52b2044bef..11ac55d06f 100644
--- a/docs/schemas/storagepool.rng
+++ b/docs/schemas/storagepool.rng
@@ -18,6 +18,7 @@
[
][
][
+ ][
][
][
][
@@ -101,6 +102,19 @@
=20
+ ]
+
+ iscsi-direct
+
+
+ [
+ ]
+ [
+ ]
+ [
+ ]
+
+
scsi
@@ -314,6 +328,14 @@
=20
+
+
+
+ [
+ ]
+
+
+
@@ -595,6 +617,19 @@
=20
+
+
+
+ [
+ ][
+ ][
+ ]
+ [
+ ]
+
+
+
+
diff --git a/docs/storage.html.in b/docs/storage.html.in
index 1906aa6cd4..744819d99d 100644
--- a/docs/storage.html.in
+++ b/docs/storage.html.in
@@ -433,6 +433,36 @@
The iSCSI volume pool does not use the volume format type element.
=20
+
+
+ This is a variant of the iSCSI pool. Instead of unsing iscsiadm, it =
uses
+ libiscsi.
+ It require a host, a path which is the target iqn and an initiator i=
qn.
+
+
+ Example pool input
+
+<pool type=3D"iscsi-direct">
+ <name>virtimages</name>
+ <source>
+ <host name=3D"iscsi.example.com"/>
+ <device path=3D"iqn.2013-06.com.example:iscsi-pool"/>
+ </source>
+ <initiator>
+ <iqn name=3D"iqn.2013-06.com.example:iscsi-initiator"/>
+ </initiator>
+</pool>
+
+ Valid pool format types
+
+ The iSCSI volume pool does not use the pool format type element.
+
+
+ Valid volume format types
+
+ The iSCSI volume pool does not use the volume format type element.
+
+
This provides a pool based on a SCSI HBA. Volumes are preexisting SC=
SI
diff --git a/m4/virt-storage-iscsi-direct.m4 b/m4/virt-storage-iscsi-direct=
.m4
new file mode 100644
index 0000000000..cc2d490352
--- /dev/null
+++ b/m4/virt-storage-iscsi-direct.m4
@@ -0,0 +1,41 @@
+dnl Iscsi-direct storage
+dnl
+dnl Copyright (C) 2018 Clementine Hayat.
+dnl
+dnl This library is free software; you can redistribute it and/or
+dnl modify it under the terms of the GNU Lesser General Public
+dnl License as published by the Free Software Foundation; either
+dnl version 2.1 of the License, or (at your option) any later version.
+dnl
+dnl This library is distributed in the hope that it will be useful,
+dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+dnl Lesser General Public License for more details.
+dnl
+dnl You should have received a copy of the GNU Lesser General Public
+dnl License along with this library. If not, see
+dnl .
+dnl
+
+AC_DEFUN([LIBVIRT_STORAGE_ARG_ISCSI_DIRECT], [
+ LIBVIRT_ARG_WITH_FEATURE([STORAGE_ISCSI_DIRECT],
+ [iscsi-direct backend for the storage driver],
+ [check])
+])
+
+AC_DEFUN([LIBVIRT_STORAGE_CHECK_ISCSI_DIRECT], [
+ AC_REQUIRE([LIBVIRT_CHECK_LIBISCSI])
+ if test "$with_storage_iscsi_direct" =3D "check"; then
+ with_storage_iscsi_direct=3D$with_libiscsi
+ fi
+ if test "$with_storage_iscsi_direct" =3D "yes"; then
+ AC_DEFINE_UNQUOTED([WITH_STORAGE_ISCSI_DIRECT], [1],
+ [whether iSCSI backend for storage driver is enable=
d])
+ fi
+ AM_CONDITIONAL([WITH_STORAGE_ISCSI_DIRECT],
+ [test "$with_storage_iscsi_direct" =3D "yes"])
+])
+
+AC_DEFUN([LIBVIRT_STORAGE_RESULT_ISCSI_DIRECT], [
+ LIBVIRT_RESULT([iscsi-direct], [$with_storage_iscsi_direct])
+])
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index eff8af20e7..7dcbe8a20b 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -30252,6 +30252,7 @@ virDomainDiskTranslateSourcePool(virDomainDiskDefPt=
r def)
=20
break;
=20
+ case VIR_STORAGE_POOL_ISCSI_DIRECT:
case VIR_STORAGE_POOL_ISCSI:
if (def->startupPolicy) {
virReportError(VIR_ERR_XML_ERROR, "%s",
diff --git a/src/conf/storage_conf.c b/src/conf/storage_conf.c
index 5036ab9ef8..f967ea0f66 100644
--- a/src/conf/storage_conf.c
+++ b/src/conf/storage_conf.c
@@ -62,9 +62,9 @@ VIR_ENUM_IMPL(virStoragePool,
VIR_STORAGE_POOL_LAST,
"dir", "fs", "netfs",
"logical", "disk", "iscsi",
- "scsi", "mpath", "rbd",
- "sheepdog", "gluster", "zfs",
- "vstorage")
+ "iscsi-direct", "scsi", "mpath",
+ "rbd", "sheepdog", "gluster",
+ "zfs", "vstorage")
=20
VIR_ENUM_IMPL(virStoragePoolFormatFileSystem,
VIR_STORAGE_POOL_FS_LAST,
@@ -207,6 +207,17 @@ static virStoragePoolTypeInfo poolTypeInfo[] =3D {
.formatToString =3D virStoragePoolFormatDiskTypeToString,
}
},
+ {.poolType =3D VIR_STORAGE_POOL_ISCSI_DIRECT,
+ .poolOptions =3D {
+ .flags =3D (VIR_STORAGE_POOL_SOURCE_HOST |
+ VIR_STORAGE_POOL_SOURCE_DEVICE |
+ VIR_STORAGE_POOL_SOURCE_NETWORK |
+ VIR_STORAGE_POOL_SOURCE_INITIATOR_IQN),
+ },
+ .volOptions =3D {
+ .formatToString =3D virStoragePoolFormatDiskTypeToString,
+ }
+ },
{.poolType =3D VIR_STORAGE_POOL_SCSI,
.poolOptions =3D {
.flags =3D (VIR_STORAGE_POOL_SOURCE_ADAPTER),
@@ -1000,11 +1011,12 @@ virStoragePoolDefFormatBuf(virBufferPtr buf,
if (virStoragePoolSourceFormat(buf, options, &def->source) < 0)
return -1;
=20
- /* RBD, Sheepdog, and Gluster devices are not local block devs nor
+ /* RBD, Sheepdog, Gluster and Iscsi-direct devices are not local block=
devs nor
* files, so they don't have a target */
if (def->type !=3D VIR_STORAGE_POOL_RBD &&
def->type !=3D VIR_STORAGE_POOL_SHEEPDOG &&
- def->type !=3D VIR_STORAGE_POOL_GLUSTER) {
+ def->type !=3D VIR_STORAGE_POOL_GLUSTER &&
+ def->type !=3D VIR_STORAGE_POOL_ISCSI_DIRECT) {
virBufferAddLit(buf, "\n");
virBufferAdjustIndent(buf, 2);
=20
diff --git a/src/conf/storage_conf.h b/src/conf/storage_conf.h
index 15dfd8becf..858623783d 100644
--- a/src/conf/storage_conf.h
+++ b/src/conf/storage_conf.h
@@ -85,6 +85,7 @@ typedef enum {
VIR_STORAGE_POOL_LOGICAL, /* Logical volume groups / volumes */
VIR_STORAGE_POOL_DISK, /* Disk partitions */
VIR_STORAGE_POOL_ISCSI, /* iSCSI targets */
+ VIR_STORAGE_POOL_ISCSI_DIRECT, /* iSCSI targets using libiscsi */
VIR_STORAGE_POOL_SCSI, /* SCSI HBA */
VIR_STORAGE_POOL_MPATH, /* Multipath devices */
VIR_STORAGE_POOL_RBD, /* RADOS Block Device */
diff --git a/src/conf/virstorageobj.c b/src/conf/virstorageobj.c
index e66b2ebfb2..1c45bb71b9 100644
--- a/src/conf/virstorageobj.c
+++ b/src/conf/virstorageobj.c
@@ -1838,11 +1838,13 @@ virStoragePoolObjSourceFindDuplicateCb(const void *=
payload,
break;
=20
case VIR_STORAGE_POOL_ISCSI:
+ case VIR_STORAGE_POOL_ISCSI_DIRECT:
case VIR_STORAGE_POOL_FS:
case VIR_STORAGE_POOL_LOGICAL:
case VIR_STORAGE_POOL_DISK:
case VIR_STORAGE_POOL_ZFS:
if ((data->def->type =3D=3D VIR_STORAGE_POOL_ISCSI ||
+ data->def->type =3D=3D VIR_STORAGE_POOL_ISCSI_DIRECT ||
data->def->type =3D=3D VIR_STORAGE_POOL_FS ||
data->def->type =3D=3D VIR_STORAGE_POOL_LOGICAL ||
data->def->type =3D=3D VIR_STORAGE_POOL_DISK ||
diff --git a/src/storage/Makefile.inc.am b/src/storage/Makefile.inc.am
index ea98c0ee52..b2714fd960 100644
--- a/src/storage/Makefile.inc.am
+++ b/src/storage/Makefile.inc.am
@@ -31,6 +31,11 @@ STORAGE_DRIVER_ISCSI_SOURCES =3D \
storage/storage_backend_iscsi.c \
$(NULL)
=20
+STORAGE_DRIVER_ISCSI_DIRECT_SOURCES =3D \
+ storage/storage_backend_iscsi_direct.h \
+ storage/storage_backend_iscsi_direct.c \
+ $(NULL)
+
STORAGE_DRIVER_SCSI_SOURCES =3D \
storage/storage_backend_scsi.h \
storage/storage_backend_scsi.c \
@@ -89,6 +94,7 @@ EXTRA_DIST +=3D \
$(STORAGE_FILE_FS_SOURCES) \
$(STORAGE_DRIVER_LVM_SOURCES) \
$(STORAGE_DRIVER_ISCSI_SOURCES) \
+ $(STORAGE_DRIVER_ISCSI_DIRECT_SOURCES) \
$(STORAGE_DRIVER_SCSI_SOURCES) \
$(STORAGE_DRIVER_MPATH_SOURCES) \
$(STORAGE_DRIVER_DISK_SOURCES) \
@@ -193,6 +199,22 @@ libvirt_storage_backend_iscsi_la_LIBADD =3D \
$(NULL)
endif WITH_STORAGE_ISCSI
=20
+if WITH_STORAGE_ISCSI_DIRECT
+libvirt_storage_backend_iscsi_direct_la_SOURCES =3D $(STORAGE_DRIVER_ISCSI=
_DIRECT_SOURCES)
+libvirt_storage_backend_iscsi_direct_la_CFLAGS =3D \
+ -I$(srcdir)/conf \
+ $(LIBISCSI_CFLAGS) \
+ $(AM_CFLAGS) \
+ $(NULL)
+
+storagebackend_LTLIBRARIES +=3D libvirt_storage_backend_iscsi-direct.la
+libvirt_storage_backend_iscsi_direct_la_LDFLAGS =3D $(AM_LDFLAGS_MOD)
+libvirt_storage_backend_iscsi_direct_la_LIBADD =3D \
+ libvirt.la \
+ ../gnulib/lib/libgnu.la \
+ $(NULL)
+endif WITH_STORAGE_ISCSI_DIRECT
+
if WITH_STORAGE_SCSI
libvirt_storage_backend_scsi_la_SOURCES =3D $(STORAGE_DRIVER_SCSI_SOURCES)
libvirt_storage_backend_scsi_la_CFLAGS =3D \
diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c
index 7d226f3d3a..e7fbc37eb1 100644
--- a/src/storage/storage_backend.c
+++ b/src/storage/storage_backend.c
@@ -43,6 +43,9 @@
#if WITH_STORAGE_ISCSI
# include "storage_backend_iscsi.h"
#endif
+#if WITH_STORAGE_ISCSI_DIRECT
+# include "storage_backend_iscsi_direct.h"
+#endif
#if WITH_STORAGE_SCSI
# include "storage_backend_scsi.h"
#endif
@@ -122,6 +125,9 @@ virStorageBackendDriversRegister(bool allbackends ATTRI=
BUTE_UNUSED)
#if WITH_STORAGE_ISCSI
VIR_STORAGE_BACKEND_REGISTER(virStorageBackendISCSIRegister, "iscsi");
#endif
+#if WITH_STORAGE_ISCSI_DIRECT
+ VIR_STORAGE_BACKEND_REGISTER(virStorageBackendISCSIDirectRegister, "is=
csi-direct");
+#endif
#if WITH_STORAGE_SCSI
VIR_STORAGE_BACKEND_REGISTER(virStorageBackendSCSIRegister, "scsi");
#endif
diff --git a/src/storage/storage_backend_iscsi_direct.c b/src/storage/stora=
ge_backend_iscsi_direct.c
new file mode 100644
index 0000000000..94c4c989ff
--- /dev/null
+++ b/src/storage/storage_backend_iscsi_direct.c
@@ -0,0 +1,58 @@
+/*
+ * storage_backend_iscsi_direct.c: storage backend for iSCSI using libiscsi
+ *
+ * Copyright (C) 2018 Clementine Hayat.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see
+ * .
+ *
+ * Author: Clementine Hayat
+ */
+
+#include
+
+#include "storage_backend_iscsi_direct.h"
+#include "storage_util.h"
+#include "virlog.h"
+
+#define VIR_FROM_THIS VIR_FROM_STORAGE
+
+VIR_LOG_INIT("storage.storage_backend_iscsi_direct");
+
+
+static int
+virStorageBackendISCSIDirectCheckPool(virStoragePoolObjPtr pool ATTRIBUTE_=
UNUSED,
+ bool *isActive ATTRIBUTE_UNUSED)
+{
+ return 0;
+}
+
+static int
+virStorageBackendISCSIDirectRefreshPool(virStoragePoolObjPtr pool ATTRIBUT=
E_UNUSED)
+{
+ return 0;
+}
+
+virStorageBackend virStorageBackendISCSIDirect =3D {
+ .type =3D VIR_STORAGE_POOL_ISCSI_DIRECT,
+
+ .checkPool =3D virStorageBackendISCSIDirectCheckPool,
+ .refreshPool =3D virStorageBackendISCSIDirectRefreshPool,
+};
+
+int
+virStorageBackendISCSIDirectRegister(void)
+{
+ return virStorageBackendRegister(&virStorageBackendISCSIDirect);
+}
diff --git a/src/storage/storage_backend_iscsi_direct.h b/src/storage/stora=
ge_backend_iscsi_direct.h
new file mode 100644
index 0000000000..545579daf7
--- /dev/null
+++ b/src/storage/storage_backend_iscsi_direct.h
@@ -0,0 +1,6 @@
+#ifndef __VIR_STORAGE_BACKEND_ISCSI_H__
+# define __VIR_STORAGE_BACKEND_ISCSI_H__
+
+int virStorageBackendISCSIDirectRegister(void);
+
+#endif /* __VIR_STORAGE_BACKEND_ISCSI_H__ */
diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c
index 8070d159ea..c108f026ce 100644
--- a/src/storage/storage_driver.c
+++ b/src/storage/storage_driver.c
@@ -1566,6 +1566,7 @@ storageVolLookupByPathCallback(virStoragePoolObjPtr o=
bj,
case VIR_STORAGE_POOL_LOGICAL:
case VIR_STORAGE_POOL_DISK:
case VIR_STORAGE_POOL_ISCSI:
+ case VIR_STORAGE_POOL_ISCSI_DIRECT:
case VIR_STORAGE_POOL_SCSI:
case VIR_STORAGE_POOL_MPATH:
case VIR_STORAGE_POOL_VSTORAGE:
diff --git a/tests/storagepoolxml2xmlin/pool-iscsi-direct-auth.xml b/tests/=
storagepoolxml2xmlin/pool-iscsi-direct-auth.xml
new file mode 100644
index 0000000000..96c82e161f
--- /dev/null
+++ b/tests/storagepoolxml2xmlin/pool-iscsi-direct-auth.xml
@@ -0,0 +1,14 @@
+
+ iscsi-direct-auth
+ 034d66fc-f507-437a-b552-c479ffd63820
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/storagepoolxml2xmlin/pool-iscsi-direct.xml b/tests/stora=
gepoolxml2xmlin/pool-iscsi-direct.xml
new file mode 100644
index 0000000000..9a0014bf42
--- /dev/null
+++ b/tests/storagepoolxml2xmlin/pool-iscsi-direct.xml
@@ -0,0 +1,12 @@
+
+ iscsi-direct
+ 034d66fc-f507-437a-b552-c479ffd63819
+
+
+
+
+
+
+
+
+
diff --git a/tests/storagepoolxml2xmlout/pool-iscsi-direct-auth.xml b/tests=
/storagepoolxml2xmlout/pool-iscsi-direct-auth.xml
new file mode 100644
index 0000000000..63b9105cbf
--- /dev/null
+++ b/tests/storagepoolxml2xmlout/pool-iscsi-direct-auth.xml
@@ -0,0 +1,17 @@
+
+ iscsi-direct-auth
+ 034d66fc-f507-437a-b552-c479ffd63820
+ 0
+ 0
+ 0
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/storagepoolxml2xmlout/pool-iscsi-direct.xml b/tests/stor=
agepoolxml2xmlout/pool-iscsi-direct.xml
new file mode 100644
index 0000000000..84717dd152
--- /dev/null
+++ b/tests/storagepoolxml2xmlout/pool-iscsi-direct.xml
@@ -0,0 +1,14 @@
+
+ iscsi-direct
+ 034d66fc-f507-437a-b552-c479ffd63819
+ 0
+ 0
+ 0
+
+
+
+
+
+
+
+
diff --git a/tests/storagepoolxml2xmltest.c b/tests/storagepoolxml2xmltest.c
index 974f0afe39..28421235bf 100644
--- a/tests/storagepoolxml2xmltest.c
+++ b/tests/storagepoolxml2xmltest.c
@@ -102,6 +102,8 @@ mymain(void)
DO_TEST("pool-zfs-sourcedev");
DO_TEST("pool-rbd");
DO_TEST("pool-vstorage");
+ DO_TEST("pool-iscsi-direct-auth");
+ DO_TEST("pool-iscsi-direct");
=20
return ret =3D=3D 0 ? EXIT_SUCCESS : EXIT_FAILURE;
}
diff --git a/tools/virsh-pool.c b/tools/virsh-pool.c
index 6faff781b2..89206a48f5 100644
--- a/tools/virsh-pool.c
+++ b/tools/virsh-pool.c
@@ -1203,6 +1203,9 @@ cmdPoolList(vshControl *ctl, const vshCmd *cmd ATTRIB=
UTE_UNUSED)
case VIR_STORAGE_POOL_ISCSI:
flags |=3D VIR_CONNECT_LIST_STORAGE_POOLS_ISCSI;
break;
+ case VIR_STORAGE_POOL_ISCSI_DIRECT:
+ flags |=3D VIR_CONNECT_LIST_STORAGE_POOLS_ISCSI;
+ break;
case VIR_STORAGE_POOL_SCSI:
flags |=3D VIR_CONNECT_LIST_STORAGE_POOLS_SCSI;
break;
--=20
2.18.0
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
From nobody Fri May 3 17:12:09 2024
Delivered-To: importer@patchew.org
Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28
as permitted sender) client-ip=209.132.183.28;
envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com;
Authentication-Results: mx.zohomail.com;
spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com
Return-Path:
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by
mx.zohomail.com
with SMTPS id 15334565935941018.2493467747913;
Sun, 5 Aug 2018 01:09:53 -0700 (PDT)
Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com
[10.5.11.12])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by mx1.redhat.com (Postfix) with ESMTPS id 689A2307D858;
Sun, 5 Aug 2018 08:09:51 +0000 (UTC)
Received: from colo-mx.corp.redhat.com
(colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21])
by smtp.corp.redhat.com (Postfix) with ESMTPS id 2BF1F77DFB;
Sun, 5 Aug 2018 08:09:51 +0000 (UTC)
Received: from lists01.pubmisc.prod.ext.phx2.redhat.com
(lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33])
by colo-mx.corp.redhat.com (Postfix) with ESMTP id D30DB24F60;
Sun, 5 Aug 2018 08:09:50 +0000 (UTC)
Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com
[10.5.11.16])
by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
id w6V8jHY7027409 for ;
Tue, 31 Jul 2018 04:45:17 -0400
Received: by smtp.corp.redhat.com (Postfix)
id DB6085C72A; Tue, 31 Jul 2018 08:45:17 +0000 (UTC)
Received: from mx1.redhat.com (ext-mx05.extmail.prod.ext.phx2.redhat.com
[10.5.110.29])
by smtp.corp.redhat.com (Postfix) with ESMTPS id 7E41B177CE;
Tue, 31 Jul 2018 08:45:07 +0000 (UTC)
Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com
[74.125.82.54])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by mx1.redhat.com (Postfix) with ESMTPS id 698A413A90;
Tue, 31 Jul 2018 08:45:05 +0000 (UTC)
Received: by mail-wm0-f54.google.com with SMTP id o11-v6so2125315wmh.2;
Tue, 31 Jul 2018 01:45:05 -0700 (PDT)
Received: from clem.localdomain ([2a01:e34:ec25:e330:f2d5:bfff:fe6e:3278])
by smtp.gmail.com with ESMTPSA id
s2-v6sm25103775wrn.83.2018.07.31.01.45.02
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Tue, 31 Jul 2018 01:45:03 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
:references;
bh=ErRMMYuvgO/5AM67ktljL6l0R/t2a+IXDQCajAS2AIY=;
b=AYfI+ml/jaqxfz2um8+GGCM/tefGkJGJJ4RlemSzhCoOpDIsSn7r24uJ9D35yXLnfv
LcSXL/QoE0P6JosHimvh49XGWSDbjEsL6zUfEmOE4M0rFlr0yFSqzpjsAWK2w1aqprpA
bsP969Uw1yB4FElYEenI4Qn2rKhI77BPMPXFiIo6nhfRTa4fqWBIOKUKQBPxxTivXITX
CzCpXL6Mq3aIOMOP6S1slhrwi5hantXZI5CqAm8aKQubXrMmKxBo+NNxliraXxfrw/FO
DV2PtDi9wGp7nQn7VhG4QJ5+lCFXAbGBXXNV0gs0B3QRAt+bX2mOBq52/mWp3WKjd1PT
VDWQ==
X-Gm-Message-State: AOUpUlGTbMzCexVEsWBEIP+E7fs8NLm29UcuXdUkcZ41dVoihiJ/crq0
aik1L+/oTHsMyV/gUcFrfoLYRo21mQ4=
X-Google-Smtp-Source:
AAOMgpdx3SP+Wfbx0lQ6dJGClyb/aK7kdRbpdeuTXdT8b9nW/BNOL1icBffufiR7MayVCvCY0Xvs9g==
X-Received: by 2002:a1c:5e08:: with SMTP id
s8-v6mr1712672wmb.88.1533026703636;
Tue, 31 Jul 2018 01:45:03 -0700 (PDT)
From: clem@lse.epita.fr
To: mprivozn@redhat.com, phrdina@redhat.com, libvir-list@redhat.com
Date: Tue, 31 Jul 2018 10:44:22 +0200
Message-Id: <20180731084423.8607-4-clem@lse.epita.fr>
In-Reply-To: <20180731084423.8607-1-clem@lse.epita.fr>
References: <20180731084423.8607-1-clem@lse.epita.fr>
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16
(mx1.redhat.com [10.5.110.29]);
Tue, 31 Jul 2018 08:45:05 +0000 (UTC)
X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com
[10.5.110.29]);
Tue, 31 Jul 2018 08:45:05 +0000 (UTC) for IP:'74.125.82.54'
DOMAIN:'mail-wm0-f54.google.com' HELO:'mail-wm0-f54.google.com'
FROM:'clementinehayat@gmail.com' RCPT:''
X-RedHat-Spam-Score: -0.028 (FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,
HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,
RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,
SPF_PASS) 74.125.82.54 mail-wm0-f54.google.com 74.125.82.54
mail-wm0-f54.google.com
X-Scanned-By: MIMEDefang 2.78 on 10.5.110.29
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16
X-loop: libvir-list@redhat.com
Cc: Clementine Hayat
Subject: [libvirt] [PATCH v3 3/4] storage: Implement iscsi_direct pool
backend
X-BeenThere: libvir-list@redhat.com
X-Mailman-Version: 2.1.12
Precedence: junk
List-Id: Development discussions about the libvirt library & tools
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Sender: libvir-list-bounces@redhat.com
Errors-To: libvir-list-bounces@redhat.com
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12
X-Greylist: Sender IP whitelisted,
not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]);
Sun, 05 Aug 2018 08:09:52 +0000 (UTC)
X-ZohoMail: RSF_0 Z_629925259 SPT_0
Content-Type: text/plain; charset="utf-8"
From: Clementine Hayat
We need here libiscsi for the storgae pool backend.
For the iscsi-direct storage pool, only checkPool and refreshPool should
be necessary for basic support.
The pool is state-less and just need the informations within the volume
to work.
Signed-off-by: Clementine Hayat
---
m4/virt-storage-iscsi-direct.m4 | 3 +
src/storage/Makefile.inc.am | 2 +
src/storage/storage_backend_iscsi_direct.c | 400 ++++++++++++++++++++-
3 files changed, 402 insertions(+), 3 deletions(-)
diff --git a/m4/virt-storage-iscsi-direct.m4 b/m4/virt-storage-iscsi-direct=
.m4
index cc2d490352..dab4414169 100644
--- a/m4/virt-storage-iscsi-direct.m4
+++ b/m4/virt-storage-iscsi-direct.m4
@@ -29,6 +29,9 @@ AC_DEFUN([LIBVIRT_STORAGE_CHECK_ISCSI_DIRECT], [
with_storage_iscsi_direct=3D$with_libiscsi
fi
if test "$with_storage_iscsi_direct" =3D "yes"; then
+ if test "$with_libiscsi" =3D "no"; then
+ AC_MSG_ERROR([Need libiscsi for iscsi-direct storage driver])
+ fi
AC_DEFINE_UNQUOTED([WITH_STORAGE_ISCSI_DIRECT], [1],
[whether iSCSI backend for storage driver is enable=
d])
fi
diff --git a/src/storage/Makefile.inc.am b/src/storage/Makefile.inc.am
index b2714fd960..bd5ea06f8b 100644
--- a/src/storage/Makefile.inc.am
+++ b/src/storage/Makefile.inc.am
@@ -203,6 +203,7 @@ if WITH_STORAGE_ISCSI_DIRECT
libvirt_storage_backend_iscsi_direct_la_SOURCES =3D $(STORAGE_DRIVER_ISCSI=
_DIRECT_SOURCES)
libvirt_storage_backend_iscsi_direct_la_CFLAGS =3D \
-I$(srcdir)/conf \
+ -I$(srcdir)/secret \
$(LIBISCSI_CFLAGS) \
$(AM_CFLAGS) \
$(NULL)
@@ -211,6 +212,7 @@ storagebackend_LTLIBRARIES +=3D libvirt_storage_backend=
_iscsi-direct.la
libvirt_storage_backend_iscsi_direct_la_LDFLAGS =3D $(AM_LDFLAGS_MOD)
libvirt_storage_backend_iscsi_direct_la_LIBADD =3D \
libvirt.la \
+ $(LIBISCSI_LIBS) \
../gnulib/lib/libgnu.la \
$(NULL)
endif WITH_STORAGE_ISCSI_DIRECT
diff --git a/src/storage/storage_backend_iscsi_direct.c b/src/storage/stora=
ge_backend_iscsi_direct.c
index 94c4c989ff..ab192730fb 100644
--- a/src/storage/storage_backend_iscsi_direct.c
+++ b/src/storage/storage_backend_iscsi_direct.c
@@ -22,28 +22,422 @@
=20
#include
=20
+#include
+#include
+
+#include "datatypes.h"
+#include "secret_util.h"
#include "storage_backend_iscsi_direct.h"
#include "storage_util.h"
+#include "viralloc.h"
+#include "virerror.h"
#include "virlog.h"
+#include "virobject.h"
+#include "virstring.h"
+#include "virtime.h"
+#include "viruuid.h"
=20
#define VIR_FROM_THIS VIR_FROM_STORAGE
=20
+#define ISCSI_DEFAULT_TARGET_PORT 3260
+#define VIR_ISCSI_TEST_UNIT_TIMEOUT 30 * 1000
+
VIR_LOG_INIT("storage.storage_backend_iscsi_direct");
=20
+static struct iscsi_context *
+virISCSIDirectCreateContext(const char* initiator_iqn)
+{
+ struct iscsi_context *iscsi =3D NULL;
+
+ iscsi =3D iscsi_create_context(initiator_iqn);
+ if (!iscsi)
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ _("Failed to create iscsi context for %s"),
+ initiator_iqn);
+ return iscsi;
+}
+
+static char *
+virStorageBackendISCSIDirectPortal(virStoragePoolSourcePtr source)
+{
+ char *portal =3D NULL;
+
+ if (source->nhost !=3D 1) {
+ virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
+ _("Expected exactly 1 host for the storage pool"));
+ return NULL;
+ }
+ if (source->hosts[0].port =3D=3D 0) {
+ ignore_value(virAsprintf(&portal, "%s:%d",
+ source->hosts[0].name,
+ ISCSI_DEFAULT_TARGET_PORT));
+ } else if (strchr(source->hosts[0].name, ':')) {
+ ignore_value(virAsprintf(&portal, "[%s]:%d",
+ source->hosts[0].name,
+ source->hosts[0].port));
+ } else {
+ ignore_value(virAsprintf(&portal, "%s:%d",
+ source->hosts[0].name,
+ source->hosts[0].port));
+ }
+ return portal;
+}
+
+static int
+virStorageBackendISCSIDirectSetAuth(struct iscsi_context *iscsi,
+ virStoragePoolSourcePtr source)
+{
+ unsigned char *secret_value =3D NULL;
+ size_t secret_size;
+ virStorageAuthDefPtr authdef =3D source->auth;
+ int ret =3D -1;
+ virConnectPtr conn =3D NULL;
+
+ if (!authdef || authdef->authType =3D=3D VIR_STORAGE_AUTH_TYPE_NONE)
+ return 0;
+
+ VIR_DEBUG("username=3D'%s' authType=3D%d seclookupdef.type=3D%d",
+ authdef->username, authdef->authType, authdef->seclookupdef.=
type);
+
+ if (authdef->authType !=3D VIR_STORAGE_AUTH_TYPE_CHAP) {
+ virReportError(VIR_ERR_XML_ERROR, "%s",
+ _("iscsi-direct pool only supports 'chap' auth type=
"));
+ return ret;
+ }
+
+ if (!(conn =3D virGetConnectSecret()))
+ return ret;
+
+ if (virSecretGetSecretString(conn, &authdef->seclookupdef,
+ VIR_SECRET_USAGE_TYPE_ISCSI,
+ &secret_value, &secret_size) < 0)
+ goto cleanup;
+
+ if (iscsi_set_initiator_username_pwd(iscsi,
+ authdef->username,
+ (const char *)secret_value) < 0) {
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ _("Failed to set credential: %s"),
+ iscsi_get_error(iscsi));
+ goto cleanup;
+ }
+
+ ret =3D 0;
+ cleanup:
+ VIR_DISPOSE_N(secret_value, secret_size);
+ virObjectUnref(conn);
+ return ret;
+}
+
+static int
+virISCSIDirectSetContext(struct iscsi_context *iscsi,
+ const char *target_name)
+{
+ if (iscsi_init_transport(iscsi, TCP_TRANSPORT) < 0) {
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ _("Failed to init transport: %s"),
+ iscsi_get_error(iscsi));
+ return -1;
+ }
+ if (iscsi_set_targetname(iscsi, target_name) < 0) {
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ _("Failed to set target name: %s"),
+ iscsi_get_error(iscsi));
+ return -1;
+ }
+ if (iscsi_set_session_type(iscsi, ISCSI_SESSION_NORMAL) < 0) {
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ _("Failed to set session type: %s"),
+ iscsi_get_error(iscsi));
+ return -1;
+ }
+ return 0;
+}
=20
static int
-virStorageBackendISCSIDirectCheckPool(virStoragePoolObjPtr pool ATTRIBUTE_=
UNUSED,
- bool *isActive ATTRIBUTE_UNUSED)
+virISCSIDirectConnect(struct iscsi_context *iscsi,
+ const char *portal)
{
+ if (iscsi_connect_sync(iscsi, portal) < 0) {
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ _("Failed to connect: %s"),
+ iscsi_get_error(iscsi));
+ return -1;
+ }
+ if (iscsi_login_sync(iscsi) < 0) {
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ _("Failed to login: %s"),
+ iscsi_get_error(iscsi));
+ return -1;
+ }
return 0;
}
=20
static int
-virStorageBackendISCSIDirectRefreshPool(virStoragePoolObjPtr pool ATTRIBUT=
E_UNUSED)
+virISCSIDirectTestUnitReady(struct iscsi_context *iscsi,
+ int lun)
+{
+ struct scsi_task *task =3D NULL;
+ int ret =3D -1;
+ virTimeBackOffVar timebackoff;
+
+ if (virTimeBackOffStart(&timebackoff, 1,
+ VIR_ISCSI_TEST_UNIT_TIMEOUT) < 0)
+ goto cleanup;
+
+ do {
+ if (!(task =3D iscsi_testunitready_sync(iscsi, lun))) {
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ _("Failed testunitready: %s"),
+ iscsi_get_error(iscsi));
+ goto cleanup;
+ }
+
+ if (task->status !=3D SCSI_STATUS_CHECK_CONDITION ||
+ task->sense.key !=3D SCSI_SENSE_UNIT_ATTENTION ||
+ task->sense.ascq !=3D SCSI_SENSE_ASCQ_BUS_RESET)
+ break;
+
+ scsi_free_scsi_task(task);
+ } while (virTimeBackOffWait(&timebackoff));
+
+ if (task->status !=3D SCSI_STATUS_GOOD) {
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ _("Failed testunitready: %s"),
+ iscsi_get_error(iscsi));
+ goto cleanup;
+ }
+
+ ret =3D 0;
+ cleanup:
+ scsi_free_scsi_task(task);
+ return ret;
+}
+
+static int
+virISCSIDirectSetVolumeAttributes(virStoragePoolObjPtr pool,
+ virStorageVolDefPtr vol,
+ int lun,
+ char *portal)
{
+ virStoragePoolDefPtr def =3D virStoragePoolObjGetDef(pool);
+
+ if (virAsprintf(&vol->name, "unit:0:0:%u", lun) < 0)
+ return -1;
+ if (virAsprintf(&vol->key, "ip-%s-iscsi-%s-lun-%u", portal,
+ def->source.devices[0].path, lun) < 0)
+ return -1;
+ if (virAsprintf(&vol->target.path, "ip-%s-iscsi-%s-lun-%u", portal,
+ def->source.devices[0].path, lun) < 0)
+ return -1;
return 0;
}
=20
+static int
+virISCSIDirectSetVolumeCapacity(struct iscsi_context *iscsi,
+ virStorageVolDefPtr vol,
+ int lun)
+{
+ struct scsi_task *task =3D NULL;
+ struct scsi_inquiry_standard *inq =3D NULL;
+ long long size =3D 0;
+ int ret =3D -1;
+
+ if (!(task =3D iscsi_inquiry_sync(iscsi, lun, 0, 0, 64)) ||
+ task->status !=3D SCSI_STATUS_GOOD) {
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ _("Failed to send inquiry command: %s"),
+ iscsi_get_error(iscsi));
+ goto cleanup;
+ }
+
+ if (!(inq =3D scsi_datain_unmarshall(task))) {
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ _("Failed to unmarshall reply: %s"),
+ iscsi_get_error(iscsi));
+ goto cleanup;
+ }
+
+ if (inq->device_type =3D=3D SCSI_INQUIRY_PERIPHERAL_DEVICE_TYPE_DIRECT=
_ACCESS) {
+ struct scsi_readcapacity10 *rc10 =3D NULL;
+
+ scsi_free_scsi_task(task);
+ task =3D NULL;
+
+ if (!(task =3D iscsi_readcapacity10_sync(iscsi, lun, 0, 0)) ||
+ task->status !=3D SCSI_STATUS_GOOD) {
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ _("Failed to get capacity of lun: %s"),
+ iscsi_get_error(iscsi));
+ goto cleanup;
+ }
+
+ if (!(rc10 =3D scsi_datain_unmarshall(task))) {
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ _("Failed to unmarshall reply: %s"),
+ iscsi_get_error(iscsi));
+ goto cleanup;
+ }
+
+ size =3D rc10->block_size;
+ size *=3D rc10->lba;
+ vol->target.capacity =3D size;
+ vol->target.allocation =3D size;
+
+ }
+
+ ret =3D 0;
+ cleanup:
+ scsi_free_scsi_task(task);
+ return ret;
+}
+
+static int
+virISCSIDirectRefreshVol(virStoragePoolObjPtr pool,
+ struct iscsi_context *iscsi,
+ int lun,
+ char *portal)
+{
+ virStoragePoolDefPtr def =3D virStoragePoolObjGetDef(pool);
+ virStorageVolDefPtr vol =3D NULL;
+ int ret =3D -1;
+
+ virStoragePoolObjClearVols(pool);
+ if (virISCSIDirectTestUnitReady(iscsi, lun) < 0)
+ goto cleanup;
+
+ if (VIR_ALLOC(vol) < 0)
+ goto cleanup;
+
+ vol->type =3D VIR_STORAGE_VOL_NETWORK;
+
+ if (virISCSIDirectSetVolumeCapacity(iscsi, vol, lun) < 0)
+ goto cleanup;
+
+ def->capacity +=3D vol->target.capacity;
+ def->allocation +=3D vol->target.allocation;
+
+ if (virISCSIDirectSetVolumeAttributes(pool, vol, lun, portal) < 0)
+ goto cleanup;
+
+ if (virStoragePoolObjAddVol(pool, vol) < 0) {
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ _("Failed to create volume: %d"),
+ lun);
+ goto cleanup;
+ }
+ vol =3D NULL;
+
+ ret =3D 0;
+ cleanup:
+ virStorageVolDefFree(vol);
+ return ret;
+}
+
+static int
+virISCSIDirectReportLuns(virStoragePoolObjPtr pool,
+ struct iscsi_context *iscsi,
+ char *portal)
+{
+ struct scsi_task *task =3D NULL;
+ struct scsi_reportluns_list *list =3D NULL;
+ int full_size;
+ size_t i;
+ int ret =3D -1;
+
+ if (!(task =3D iscsi_reportluns_sync(iscsi, 0, 16))) {
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ _("Failed to reportluns: %s"),
+ iscsi_get_error(iscsi));
+ goto cleanup;
+ }
+
+ full_size =3D scsi_datain_getfullsize(task);
+
+ if (full_size > task->datain.size) {
+ scsi_free_scsi_task(task);
+ if (!(task =3D iscsi_reportluns_sync(iscsi, 0, full_size))) {
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ _("Failed to reportluns: %s"),
+ iscsi_get_error(iscsi));
+ goto cleanup;
+ }
+ }
+
+ if (!(list =3D scsi_datain_unmarshall(task))) {
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ _("Failed to unmarshall reportluns: %s"),
+ iscsi_get_error(iscsi));
+ goto cleanup;
+ }
+
+ for (i =3D 0; i < list->num; i++) {
+ if (virISCSIDirectRefreshVol(pool, iscsi, list->luns[i], portal) <=
0)
+ goto cleanup;
+ }
+
+ ret =3D 0;
+ cleanup:
+ scsi_free_scsi_task(task);
+ return ret;
+}
+
+static int
+virISCSIDirectDisconnect(struct iscsi_context *iscsi)
+{
+ if (iscsi_logout_sync(iscsi) < 0) {
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ _("Failed to logout: %s"),
+ iscsi_get_error(iscsi));
+ return -1;
+ }
+ if (iscsi_disconnect(iscsi) < 0) {
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ _("Failed to disconnect: %s"),
+ iscsi_get_error(iscsi));
+ return -1;
+ }
+ return 0;
+}
+
+static int
+virStorageBackendISCSIDirectCheckPool(virStoragePoolObjPtr pool,
+ bool *isActive)
+{
+ *isActive =3D virStoragePoolObjIsActive(pool);
+ return 0;
+}
+
+static int
+virStorageBackendISCSIDirectRefreshPool(virStoragePoolObjPtr pool)
+{
+ virStoragePoolDefPtr def =3D virStoragePoolObjGetDef(pool);
+ struct iscsi_context *iscsi =3D NULL;
+ char *portal =3D NULL;
+ int ret =3D -1;
+
+ if (!(iscsi =3D virISCSIDirectCreateContext(def->source.initiator.iqn)=
))
+ goto cleanup;
+ if (!(portal =3D virStorageBackendISCSIDirectPortal(&def->source)))
+ goto cleanup;
+ if (virStorageBackendISCSIDirectSetAuth(iscsi, &def->source) < 0)
+ goto cleanup;
+ if (virISCSIDirectSetContext(iscsi, def->source.devices[0].path) < 0)
+ goto cleanup;
+ if (virISCSIDirectConnect(iscsi, portal) < 0)
+ goto cleanup;
+ if (virISCSIDirectReportLuns(pool, iscsi, portal) < 0)
+ goto disconect;
+
+ ret =3D 0;
+ disconect:
+ virISCSIDirectDisconnect(iscsi);
+ cleanup:
+ VIR_FREE(portal);
+ iscsi_destroy_context(iscsi);
+ return ret;
+}
+
virStorageBackend virStorageBackendISCSIDirect =3D {
.type =3D VIR_STORAGE_POOL_ISCSI_DIRECT,
=20
--=20
2.18.0
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
From nobody Fri May 3 17:12:09 2024
Delivered-To: importer@patchew.org
Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28
as permitted sender) client-ip=209.132.183.28;
envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com;
Authentication-Results: mx.zohomail.com;
spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com
Return-Path:
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by
mx.zohomail.com
with SMTPS id 1533026729330639.5316256814077;
Tue, 31 Jul 2018 01:45:29 -0700 (PDT)
Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com
[10.5.11.16])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by mx1.redhat.com (Postfix) with ESMTPS id 454A13084039;
Tue, 31 Jul 2018 08:45:27 +0000 (UTC)
Received: from colo-mx.corp.redhat.com
(colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21])
by smtp.corp.redhat.com (Postfix) with ESMTPS id F04FD5FC36;
Tue, 31 Jul 2018 08:45:26 +0000 (UTC)
Received: from lists01.pubmisc.prod.ext.phx2.redhat.com
(lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33])
by colo-mx.corp.redhat.com (Postfix) with ESMTP id 91A184A463;
Tue, 31 Jul 2018 08:45:26 +0000 (UTC)
Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com
[10.5.11.23])
by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
id w6V8jPvV027430 for ;
Tue, 31 Jul 2018 04:45:25 -0400
Received: by smtp.corp.redhat.com (Postfix)
id 6D1C82657B; Tue, 31 Jul 2018 08:45:25 +0000 (UTC)
Received: from mx1.redhat.com (ext-mx15.extmail.prod.ext.phx2.redhat.com
[10.5.110.44])
by smtp.corp.redhat.com (Postfix) with ESMTPS id 5E444194AC;
Tue, 31 Jul 2018 08:45:18 +0000 (UTC)
Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com
[209.85.221.68])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by mx1.redhat.com (Postfix) with ESMTPS id 5938030832CD;
Tue, 31 Jul 2018 08:45:07 +0000 (UTC)
Received: by mail-wr1-f68.google.com with SMTP id v14-v6so15742301wro.5;
Tue, 31 Jul 2018 01:45:07 -0700 (PDT)
Received: from clem.localdomain ([2a01:e34:ec25:e330:f2d5:bfff:fe6e:3278])
by smtp.gmail.com with ESMTPSA id
s2-v6sm25103775wrn.83.2018.07.31.01.45.04
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Tue, 31 Jul 2018 01:45:05 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to
:references;
bh=Be66rPCN6su5qwCN57IcOKEx+ST9VXX77ml/EaL6LlI=;
b=mINdm2srLeQCA70lx+2hGXYN+3Y1jNtHwP/yhGQJap2M47zY7W+uCUNSqBmyFMGghM
roUoOZHLp3NhsBBGAR0CVS+8p0QEGRGJ45/b1EnD8CD+3wpH+mWaeB4fXujcl0tluxYU
lNh3Po1yTDdGFXKpwVu+MjTw/ZXxB0KBbkXI3Lej0NfYACYJ4EfHyWngcVyAUtmZY8w2
zmy/gekL45RkjYZEVMsTHS1NTsDqqF0Ymdn7Kf7/98wOo1DTilTl+mIbUuzT4HvgATOl
hgO3kX3itdNCfloRJ1YmQ/RopF2neNCe2hXtX2xrJpkimYrbt/Vppcx2k3vo24UOnbRL
eT5A==
X-Gm-Message-State: AOUpUlEjd+XYAuzxAOGG4TokVukzLJ42JEvydtjsbpncMneCQbXKtJ0Z
snsi0vOnCjxAJx0cUiKPVvh00/Mcmfo=
X-Google-Smtp-Source:
AAOMgpfhIxWFdHnp89zJjqSbgVBtgj0lsg4Vt+OUfnFwtfC6vYNSmZiNT1ApNv09CJHuVXC3puSOug==
X-Received: by 2002:adf:c612:: with SMTP id
n18-v6mr19999033wrg.177.1533026705742;
Tue, 31 Jul 2018 01:45:05 -0700 (PDT)
From: clem@lse.epita.fr
To: mprivozn@redhat.com, phrdina@redhat.com, libvir-list@redhat.com
Date: Tue, 31 Jul 2018 10:44:23 +0200
Message-Id: <20180731084423.8607-5-clem@lse.epita.fr>
In-Reply-To: <20180731084423.8607-1-clem@lse.epita.fr>
References: <20180731084423.8607-1-clem@lse.epita.fr>
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16
(mx1.redhat.com [10.5.110.44]);
Tue, 31 Jul 2018 08:45:18 +0000 (UTC)
X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com
[10.5.110.44]);
Tue, 31 Jul 2018 08:45:18 +0000 (UTC) for IP:'209.85.221.68'
DOMAIN:'mail-wr1-f68.google.com' HELO:'mail-wr1-f68.google.com'
FROM:'clementinehayat@gmail.com' RCPT:''
X-RedHat-Spam-Score: -0.009 (FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,
HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,
RCVD_IN_MSPIKE_H2,
SPF_PASS) 209.85.221.68 mail-wr1-f68.google.com 209.85.221.68
mail-wr1-f68.google.com
X-Scanned-By: MIMEDefang 2.84 on 10.5.110.44
X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23
X-loop: libvir-list@redhat.com
Cc: Clementine Hayat
Subject: [libvirt] [PATCH v3 4/4] news: add storage pool iscsi-direct
X-BeenThere: libvir-list@redhat.com
X-Mailman-Version: 2.1.12
Precedence: junk
List-Id: Development discussions about the libvirt library & tools
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Sender: libvir-list-bounces@redhat.com
Errors-To: libvir-list-bounces@redhat.com
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16
X-Greylist: Sender IP whitelisted,
not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]);
Tue, 31 Jul 2018 08:45:27 +0000 (UTC)
X-ZohoMail: RSF_0 Z_629925259 SPT_0
Content-Type: text/plain; charset="utf-8"
From: Clementine Hayat
Signed-off-by: Clementine Hayat
---
docs/news.xml | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/docs/news.xml b/docs/news.xml
index a68ef2dc1c..73e79dff0f 100644
--- a/docs/news.xml
+++ b/docs/news.xml
@@ -35,6 +35,15 @@
+
+
+ storage: add storage pool iscsi-direct
+
+
+ Introduce a new storage pool backend that uses libiscsi instead =
of
+ iscsiadm. It support basic pool operations: checkPool and refres=
hPool.
+
+
qemu: Implement the HTM pSeries feature
--=20
2.18.0
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list