File 0001-Add-support-for-xen-scsiback.patch of Package python-rtslib.2496

From f2170cbcabbd79156e659455a537e3ded9443ad4 Mon Sep 17 00:00:00 2001
From: Olaf Hering <olaf@aepfle.de>
Date: Wed, 4 Mar 2015 15:00:56 +0100
Subject: Add support for xen-scsiback

With this change the xen-scsiback driver added to Linux 3.18 can be
configured with targetcli.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
---
 policy/fabric_xen-pvscsi.lio |  9 +++++++++
 specs/xen-pvscsi.spec        | 11 +++++++++++
 2 files changed, 20 insertions(+)
 create mode 100644 policy/fabric_xen-pvscsi.lio
 create mode 100644 specs/xen-pvscsi.spec

diff --git a/policy/fabric_xen-pvscsi.lio b/policy/fabric_xen-pvscsi.lio
new file mode 100644
index 0000000..60c1c4f
--- /dev/null
+++ b/policy/fabric_xen-pvscsi.lio
@@ -0,0 +1,9 @@
+fabric xen-pvscsi {
+    target %naa tpgt %int {
+        nexus_wwn %naa
+        lun %int backend %backend
+        parameter {
+            alias %str
+        }
+    }
+}
diff --git a/specs/xen-pvscsi.spec b/specs/xen-pvscsi.spec
new file mode 100644
index 0000000..28b29dd
--- /dev/null
+++ b/specs/xen-pvscsi.spec
@@ -0,0 +1,11 @@
+# The fabric module feature set
+features = nexus, tpgts
+
+# Use naa WWNs.
+wwn_type = naa
+
+# Non-standard module naming scheme
+kernel_module = xen-scsiback
+
+# The configfs group
+configfs_group = xen-pvscsi
openSUSE Build Service is sponsored by