Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ forked git repo for sm in the xcp-ng github organisation.
systemd/xs-sm.service | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/systemd/xs-sm.service b/systemd/xs-sm.service
index 99cb313f..609c6ef5 100644
--- a/systemd/xs-sm.service
+++ b/systemd/xs-sm.service
Index: sm-3.2.12/systemd/xs-sm.service
===================================================================
--- sm-3.2.12.orig/systemd/xs-sm.service
+++ sm-3.2.12/systemd/xs-sm.service
@@ -1,5 +1,5 @@
[Unit]
-Description=XenServer Storage Manager (SM)
Expand Down
32 changes: 15 additions & 17 deletions SOURCES/0002-feat-drivers-add-CephFS-and-GlusterFS-drivers.patch
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ Subject: [PATCH] feat(drivers): add CephFS and GlusterFS drivers
create mode 100644 drivers/CephFSSR.py
create mode 100644 drivers/GlusterFSSR.py

diff --git a/Makefile b/Makefile
index e6ff5a7a..d4f540f4 100755
--- a/Makefile
+++ b/Makefile
Index: sm-3.2.12/Makefile
===================================================================
--- sm-3.2.12.orig/Makefile
+++ sm-3.2.12/Makefile
@@ -14,6 +14,8 @@ SM_DRIVERS += LVHDoHBA
SM_DRIVERS += SHM
SM_DRIVERS += SMB
Expand All @@ -25,11 +25,10 @@ index e6ff5a7a..d4f540f4 100755

SM_LIBS := SR
SM_LIBS += SRCommand
diff --git a/drivers/CephFSSR.py b/drivers/CephFSSR.py
new file mode 100644
index 00000000..415152f7
Index: sm-3.2.12/drivers/CephFSSR.py
===================================================================
--- /dev/null
+++ b/drivers/CephFSSR.py
+++ sm-3.2.12/drivers/CephFSSR.py
@@ -0,0 +1,296 @@
+#!/usr/bin/env python
+#
Expand Down Expand Up @@ -327,11 +326,10 @@ index 00000000..415152f7
+ SRCommand.run(CephFSSR, DRIVER_INFO)
+else:
+ SR.registerSR(CephFSSR)
diff --git a/drivers/GlusterFSSR.py b/drivers/GlusterFSSR.py
new file mode 100644
index 00000000..72c482ae
Index: sm-3.2.12/drivers/GlusterFSSR.py
===================================================================
--- /dev/null
+++ b/drivers/GlusterFSSR.py
+++ sm-3.2.12/drivers/GlusterFSSR.py
@@ -0,0 +1,287 @@
+#!/usr/bin/env python
+#
Expand Down Expand Up @@ -620,11 +618,11 @@ index 00000000..72c482ae
+ SRCommand.run(GlusterFSSR, DRIVER_INFO)
+else:
+ SR.registerSR(GlusterFSSR)
diff --git a/drivers/cleanup.py b/drivers/cleanup.py
index 76fcb8d1..24496ac4 100755
--- a/drivers/cleanup.py
+++ b/drivers/cleanup.py
@@ -2987,7 +2987,9 @@ def normalizeType(type):
Index: sm-3.2.12/drivers/cleanup.py
===================================================================
--- sm-3.2.12.orig/drivers/cleanup.py
+++ sm-3.2.12/drivers/cleanup.py
@@ -2991,7 +2991,9 @@ def normalizeType(type):
if type in ["lvm", "lvmoiscsi", "lvmohba", "lvmofcoe"]:
# temporary while LVHD is symlinked as LVM
type = SR.TYPE_LVHD
Expand Down
25 changes: 12 additions & 13 deletions SOURCES/0003-feat-drivers-add-XFS-driver.patch
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
3 files changed, 251 insertions(+)
create mode 100755 drivers/XFSSR.py

diff --git a/Makefile b/Makefile
index d4f540f4..cdf39f32 100755
--- a/Makefile
+++ b/Makefile
Index: sm-3.2.12/Makefile
===================================================================
--- sm-3.2.12.orig/Makefile
+++ sm-3.2.12/Makefile
@@ -16,6 +16,7 @@ SM_DRIVERS += SMB
SM_DRIVERS += LVHDoFCoE
SM_DRIVERS += CephFS
Expand All @@ -32,11 +32,10 @@ index d4f540f4..cdf39f32 100755

SM_LIBS := SR
SM_LIBS += SRCommand
diff --git a/drivers/XFSSR.py b/drivers/XFSSR.py
new file mode 100755
index 00000000..1dfde095
Index: sm-3.2.12/drivers/XFSSR.py
===================================================================
--- /dev/null
+++ b/drivers/XFSSR.py
+++ sm-3.2.12/drivers/XFSSR.py
@@ -0,0 +1,249 @@
+#!/usr/bin/python3
+#
Expand Down Expand Up @@ -287,11 +286,11 @@ index 00000000..1dfde095
+ SRCommand.run(XFSSR, DRIVER_INFO)
+else:
+ SR.registerSR(XFSSR)
diff --git a/drivers/cleanup.py b/drivers/cleanup.py
index 24496ac4..7fb8f8fa 100755
--- a/drivers/cleanup.py
+++ b/drivers/cleanup.py
@@ -2989,6 +2989,7 @@ def normalizeType(type):
Index: sm-3.2.12/drivers/cleanup.py
===================================================================
--- sm-3.2.12.orig/drivers/cleanup.py
+++ sm-3.2.12/drivers/cleanup.py
@@ -2993,6 +2993,7 @@ def normalizeType(type):
type = SR.TYPE_LVHD
if type in [
"ext", "nfs", "ocfsoiscsi", "ocfsohba", "smb", "cephfs", "glusterfs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ Subject: [PATCH] feat(drivers): add ZFS driver to avoid losing VDI metadata
4 files changed, 149 insertions(+), 1 deletion(-)
create mode 100644 drivers/ZFSSR.py

diff --git a/Makefile b/Makefile
index cdf39f32..95aa5b2b 100755
--- a/Makefile
+++ b/Makefile
Index: sm-3.2.12/Makefile
===================================================================
--- sm-3.2.12.orig/Makefile
+++ sm-3.2.12/Makefile
@@ -17,6 +17,7 @@ SM_DRIVERS += LVHDoFCoE
SM_DRIVERS += CephFS
SM_DRIVERS += GlusterFS
Expand All @@ -24,11 +24,11 @@ index cdf39f32..95aa5b2b 100755

SM_LIBS := SR
SM_LIBS += SRCommand
diff --git a/drivers/XE_SR_ERRORCODES.xml b/drivers/XE_SR_ERRORCODES.xml
index 47fefd83..120b92fc 100755
--- a/drivers/XE_SR_ERRORCODES.xml
+++ b/drivers/XE_SR_ERRORCODES.xml
@@ -915,5 +915,15 @@
Index: sm-3.2.12/drivers/XE_SR_ERRORCODES.xml
===================================================================
--- sm-3.2.12.orig/drivers/XE_SR_ERRORCODES.xml
+++ sm-3.2.12/drivers/XE_SR_ERRORCODES.xml
@@ -921,5 +921,15 @@
<value>1200</value>
</code>

Expand All @@ -44,11 +44,10 @@ index 47fefd83..120b92fc 100755
+ <value>5001</value>
+ </code>
</SM-errorcodes>
diff --git a/drivers/ZFSSR.py b/drivers/ZFSSR.py
new file mode 100644
index 00000000..1b2f398f
Index: sm-3.2.12/drivers/ZFSSR.py
===================================================================
--- /dev/null
+++ b/drivers/ZFSSR.py
+++ sm-3.2.12/drivers/ZFSSR.py
@@ -0,0 +1,137 @@
+#!/usr/bin/env python
+#
Expand Down Expand Up @@ -187,11 +186,11 @@ index 00000000..1b2f398f
+ SRCommand.run(ZFSSR, DRIVER_INFO)
+else:
+ SR.registerSR(ZFSSR)
diff --git a/drivers/cleanup.py b/drivers/cleanup.py
index 7fb8f8fa..62e283ab 100755
--- a/drivers/cleanup.py
+++ b/drivers/cleanup.py
@@ -2989,7 +2989,7 @@ def normalizeType(type):
Index: sm-3.2.12/drivers/cleanup.py
===================================================================
--- sm-3.2.12.orig/drivers/cleanup.py
+++ sm-3.2.12/drivers/cleanup.py
@@ -2993,7 +2993,7 @@ def normalizeType(type):
type = SR.TYPE_LVHD
if type in [
"ext", "nfs", "ocfsoiscsi", "ocfsohba", "smb", "cephfs", "glusterfs",
Expand Down
Loading