Skip to content

Commit abb92ec

Browse files
committed
Skipped all XCP-ng patches for now
1 parent 2521236 commit abb92ec

File tree

1 file changed

+163
-102
lines changed

1 file changed

+163
-102
lines changed

SPECS/sm.spec

Lines changed: 163 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -52,72 +52,72 @@ Requires: libcgroup-tools
5252

5353
Obsoletes: sm-additional-drivers
5454

55-
# XCP-ng patches
56-
# Generated from our sm repository
57-
# git format-patch v3.2.12-xcpng..3.2.12-8.3 --no-signature --no-numbered
58-
Patch1001: 0001-Update-xs-sm.service-s-description-for-XCP-ng.patch
59-
Patch1002: 0002-feat-drivers-add-CephFS-and-GlusterFS-drivers.patch
60-
Patch1003: 0003-feat-drivers-add-XFS-driver.patch
61-
Patch1004: 0004-feat-drivers-add-ZFS-driver-to-avoid-losing-VDI-meta.patch
62-
Patch1005: 0005-feat-drivers-add-LinstorSR-driver.patch
63-
Patch1006: 0006-feat-tests-add-unit-tests-concerning-ZFS-close-xcp-n.patch
64-
Patch1007: 0007-Added-SM-Driver-for-MooseFS.patch
65-
Patch1008: 0008-Avoid-usage-of-umount-in-ISOSR-when-legacy_mode-is-u.patch
66-
Patch1009: 0009-MooseFS-SR-uses-now-UUID-subdirs-for-each-SR.patch
67-
Patch1010: 0010-Fix-is_open-call-for-many-drivers-25.patch
68-
Patch1011: 0011-Remove-SR_CACHING-capability-for-many-SR-types-24.patch
69-
Patch1012: 0012-Fix-code-coverage-regarding-MooseFSSR-and-ZFSSR-29.patch
70-
Patch1013: 0013-py3-simple-changes-from-futurize-on-XCP-ng-drivers.patch
71-
Patch1014: 0014-py3-futurize-fix-of-xmlrpc-calls-for-CephFS-GlusterF.patch
72-
Patch1015: 0015-py3-use-of-integer-division-operator.patch
73-
Patch1016: 0016-test_on_slave-allow-to-work-with-SR-using-absolute-P.patch
74-
Patch1017: 0017-py3-switch-interpreter-to-python3.patch
75-
Patch1018: 0018-Support-recent-version-of-coverage-tool.patch
76-
Patch1019: 0019-feat-LinstorSR-import-all-8.2-changes.patch
77-
Patch1020: 0020-feat-LinstorSR-is-now-compatible-with-python-3.patch
78-
Patch1021: 0021-Remove-SR_PROBE-from-ZFS-capabilities-36.patch
79-
Patch1022: 0022-Repair-coverage-to-be-compatible-with-8.3-test-env.patch
80-
Patch1023: 0023-Support-IPv6-in-Ceph-Driver.patch
81-
Patch1024: 0024-lvutil-use-wipefs-not-dd-to-clear-existing-signature.patch
82-
Patch1025: 0025-feat-LargeBlock-introduce-largeblocksr-51.patch
83-
Patch1026: 0026-feat-LVHDSR-add-a-way-to-modify-config-of-LVMs-60.patch
84-
Patch1027: 0027-reflect-upstream-changes-in-our-tests.patch
85-
Patch1028: 0028-Synchronization-with-8.2-LINSTOR-before-a-stable-rel.patch
86-
Patch1029: 0029-fix-LinstorSR-sync-fork-load-daemon-with-http-nbd-tr.patch
87-
Patch1030: 0030-fix-LinstorSR-simplify-_kick_gc-code-using-systemd-s.patch
88-
Patch1031: 0031-fix-LinstorSR-imitate-the-CA-400106-change.patch
89-
Patch1032: 0032-fix-linstorvhdutil-coalesce-helper-returns-the-secto.patch
90-
Patch1033: 0033-Prevent-wrong-mypy-error-regarding-_linstor-member-n.patch
91-
Patch1034: 0034-Fix-many-invalid-escape-sequences.patch
92-
Patch1035: 0035-Fix-many-invalid-escape-sequences-on-regexes.patch
93-
Patch1036: 0036-Fix-override-of-FileSR.attach.patch
94-
Patch1037: 0037-Fix-override-of-BaseISCSISR.detach.patch
95-
Patch1038: 0038-Fix-override-of-VDI.delete-in-many-subclasses.patch
96-
Patch1039: 0039-Fix-override-of-VDI._do_snapshot.patch
97-
Patch1040: 0040-Fix-override-of-VDI.load-in-LVHDVDI-cleanup.py.patch
98-
Patch1041: 0041-Use-a-specific-var-for-NFS-options-in-ISOSR.attach.patch
99-
Patch1042: 0042-Modernize-Lock-class-using-staticmethod-decorator.patch
100-
Patch1043: 0043-Modernize-GC-using-staticmethod-decorator.patch
101-
Patch1044: 0044-Modernize-RefCounter-using-staticmethod-decorator.patch
102-
Patch1045: 0045-Simplify-FakeSMBSR-implementation-remove-member-vars.patch
103-
Patch1046: 0046-Use-for-session-instead-of-for-e.patch
104-
Patch1047: 0047-Fix-util.SRtoXML-calls-in-many-drivers.patch
105-
Patch1048: 0048-Replace-Dict-variable-with-info-in-LVHDSR.patch
106-
Patch1049: 0049-Prevent-mypy-errors-when-a-variable-type-is-changed-.patch
107-
Patch1050: 0050-Prevent-bad-mypy-error-in-TestMultiLUNISCSISR-using-.patch
108-
Patch1051: 0051-Count-correctly-IQN-sessions-during-ISCSISR-attach.patch
109-
Patch1052: 0052-Use-importlib-instead-of-imp-which-is-deprecated-in-.patch
110-
Patch1053: 0053-Replace-deprecated-calls-to-distutils.spawn.find_exe.patch
111-
Patch1054: 0054-Replace-deprecated-calls-to-distutils.util.strtobool.patch
112-
Patch1055: 0055-Fix-_locked_load-calls-compatibility-with-python-3.1.patch
113-
Patch1056: 0056-Use-static-analysis-tool-mypy.patch
114-
Patch1057: 0057-Add-mypy-stubs.patch
115-
Patch1058: 0058-Use-override-everywhere.patch
116-
Patch1059: 0059-Makefile-fix-don-t-execute-precheck-during-installat.patch
117-
Patch1060: 0060-Fix-LVHDSR.load-set-other_conf-in-cond-branch-to-pre.patch
118-
Patch1061: 0061-fix-cleanup.py-protect-LinstorSR-init-against-race-c.patch
119-
Patch1062: 0062-Fix-filter-to-reject-other-device-types-77.patch
120-
Patch1063: 0063-fix-cleanup.py-resize-on-a-primary-host-82.patch
55+
# # XCP-ng patches
56+
# # Generated from our sm repository
57+
# # git format-patch v3.2.12-xcpng..3.2.12-8.3 --no-signature --no-numbered
58+
# Patch1001: 0001-Update-xs-sm.service-s-description-for-XCP-ng.patch
59+
# Patch1002: 0002-feat-drivers-add-CephFS-and-GlusterFS-drivers.patch
60+
# Patch1003: 0003-feat-drivers-add-XFS-driver.patch
61+
# Patch1004: 0004-feat-drivers-add-ZFS-driver-to-avoid-losing-VDI-meta.patch
62+
# Patch1005: 0005-feat-drivers-add-LinstorSR-driver.patch
63+
# Patch1006: 0006-feat-tests-add-unit-tests-concerning-ZFS-close-xcp-n.patch
64+
# Patch1007: 0007-Added-SM-Driver-for-MooseFS.patch
65+
# Patch1008: 0008-Avoid-usage-of-umount-in-ISOSR-when-legacy_mode-is-u.patch
66+
# Patch1009: 0009-MooseFS-SR-uses-now-UUID-subdirs-for-each-SR.patch
67+
# Patch1010: 0010-Fix-is_open-call-for-many-drivers-25.patch
68+
# Patch1011: 0011-Remove-SR_CACHING-capability-for-many-SR-types-24.patch
69+
# Patch1012: 0012-Fix-code-coverage-regarding-MooseFSSR-and-ZFSSR-29.patch
70+
# Patch1013: 0013-py3-simple-changes-from-futurize-on-XCP-ng-drivers.patch
71+
# Patch1014: 0014-py3-futurize-fix-of-xmlrpc-calls-for-CephFS-GlusterF.patch
72+
# Patch1015: 0015-py3-use-of-integer-division-operator.patch
73+
# Patch1016: 0016-test_on_slave-allow-to-work-with-SR-using-absolute-P.patch
74+
# Patch1017: 0017-py3-switch-interpreter-to-python3.patch
75+
# Patch1018: 0018-Support-recent-version-of-coverage-tool.patch
76+
# Patch1019: 0019-feat-LinstorSR-import-all-8.2-changes.patch
77+
# Patch1020: 0020-feat-LinstorSR-is-now-compatible-with-python-3.patch
78+
# Patch1021: 0021-Remove-SR_PROBE-from-ZFS-capabilities-36.patch
79+
# Patch1022: 0022-Repair-coverage-to-be-compatible-with-8.3-test-env.patch
80+
# Patch1023: 0023-Support-IPv6-in-Ceph-Driver.patch
81+
# Patch1024: 0024-lvutil-use-wipefs-not-dd-to-clear-existing-signature.patch
82+
# Patch1025: 0025-feat-LargeBlock-introduce-largeblocksr-51.patch
83+
# Patch1026: 0026-feat-LVHDSR-add-a-way-to-modify-config-of-LVMs-60.patch
84+
# Patch1027: 0027-reflect-upstream-changes-in-our-tests.patch
85+
# Patch1028: 0028-Synchronization-with-8.2-LINSTOR-before-a-stable-rel.patch
86+
# Patch1029: 0029-fix-LinstorSR-sync-fork-load-daemon-with-http-nbd-tr.patch
87+
# Patch1030: 0030-fix-LinstorSR-simplify-_kick_gc-code-using-systemd-s.patch
88+
# Patch1031: 0031-fix-LinstorSR-imitate-the-CA-400106-change.patch
89+
# Patch1032: 0032-fix-linstorvhdutil-coalesce-helper-returns-the-secto.patch
90+
# Patch1033: 0033-Prevent-wrong-mypy-error-regarding-_linstor-member-n.patch
91+
# Patch1034: 0034-Fix-many-invalid-escape-sequences.patch
92+
# Patch1035: 0035-Fix-many-invalid-escape-sequences-on-regexes.patch
93+
# Patch1036: 0036-Fix-override-of-FileSR.attach.patch
94+
# Patch1037: 0037-Fix-override-of-BaseISCSISR.detach.patch
95+
# Patch1038: 0038-Fix-override-of-VDI.delete-in-many-subclasses.patch
96+
# Patch1039: 0039-Fix-override-of-VDI._do_snapshot.patch
97+
# Patch1040: 0040-Fix-override-of-VDI.load-in-LVHDVDI-cleanup.py.patch
98+
# Patch1041: 0041-Use-a-specific-var-for-NFS-options-in-ISOSR.attach.patch
99+
# Patch1042: 0042-Modernize-Lock-class-using-staticmethod-decorator.patch
100+
# Patch1043: 0043-Modernize-GC-using-staticmethod-decorator.patch
101+
# Patch1044: 0044-Modernize-RefCounter-using-staticmethod-decorator.patch
102+
# Patch1045: 0045-Simplify-FakeSMBSR-implementation-remove-member-vars.patch
103+
# Patch1046: 0046-Use-for-session-instead-of-for-e.patch
104+
# Patch1047: 0047-Fix-util.SRtoXML-calls-in-many-drivers.patch
105+
# Patch1048: 0048-Replace-Dict-variable-with-info-in-LVHDSR.patch
106+
# Patch1049: 0049-Prevent-mypy-errors-when-a-variable-type-is-changed-.patch
107+
# Patch1050: 0050-Prevent-bad-mypy-error-in-TestMultiLUNISCSISR-using-.patch
108+
# Patch1051: 0051-Count-correctly-IQN-sessions-during-ISCSISR-attach.patch
109+
# Patch1052: 0052-Use-importlib-instead-of-imp-which-is-deprecated-in-.patch
110+
# Patch1053: 0053-Replace-deprecated-calls-to-distutils.spawn.find_exe.patch
111+
# Patch1054: 0054-Replace-deprecated-calls-to-distutils.util.strtobool.patch
112+
# Patch1055: 0055-Fix-_locked_load-calls-compatibility-with-python-3.1.patch
113+
# Patch1056: 0056-Use-static-analysis-tool-mypy.patch
114+
# Patch1057: 0057-Add-mypy-stubs.patch
115+
# Patch1058: 0058-Use-override-everywhere.patch
116+
# Patch1059: 0059-Makefile-fix-don-t-execute-precheck-during-installat.patch
117+
# Patch1060: 0060-Fix-LVHDSR.load-set-other_conf-in-cond-branch-to-pre.patch
118+
# Patch1061: 0061-fix-cleanup.py-protect-LinstorSR-init-against-race-c.patch
119+
# Patch1062: 0062-Fix-filter-to-reject-other-device-types-77.patch
120+
# Patch1063: 0063-fix-cleanup.py-resize-on-a-primary-host-82.patch
121121

122122
%description
123123
This package contains storage backends used in XCP
@@ -177,9 +177,9 @@ systemctl start sr_health_check.timer
177177
systemctl enable sr_health_check.timer
178178
systemctl start sr_health_check.timer
179179

180-
# XCP-ng: enable linstor-monitor by default.
181-
# However it won't start without linstor-controller.service
182-
systemctl enable linstor-monitor.service
180+
# # XCP-ng: enable linstor-monitor by default.
181+
# # However it won't start without linstor-controller.service
182+
# systemctl enable linstor-monitor.service
183183

184184
# XCP-ng: We must reload the multipathd configuration without restarting the service to prevent
185185
# the opening of /dev/drbdXXXX volumes. Otherwise if multipathd opens a DRBD volume,
@@ -202,8 +202,8 @@ fi
202202
# Remove sm-multipath on upgrade or uninstall, to ensure it goes
203203
[ ! -x /sbin/chkconfig ] || chkconfig --del sm-multipath || :
204204

205-
# XCP-ng
206-
%systemd_preun linstor-monitor.service
205+
# # XCP-ng
206+
# %systemd_preun linstor-monitor.service
207207

208208
exit 0
209209

@@ -216,8 +216,8 @@ exit 0
216216
%systemd_postun sr_health_check.timer
217217
%systemd_postun sr_health_check.service
218218

219-
# XCP-ng
220-
%systemd_postun linstor-monitor.service
219+
# # XCP-ng
220+
# %systemd_postun linstor-monitor.service
221221

222222
%check
223223
tests/run_python_unittests.sh
@@ -264,35 +264,95 @@ cp -r htmlcov %{buildroot}/htmlcov
264264
%config %{_sysconfdir}/udev/rules.d/99-purestorage.rules
265265
%doc CONTRIB LICENSE MAINTAINERS README.md
266266
%{_datadir}/%{name}/update-cgrules.patch
267-
# XCP-ng
268-
/etc/systemd/system/drbd-reactor.service.d/override.conf
269-
/etc/systemd/system/linstor-satellite.service.d/override.conf
270-
/etc/systemd/system/var-lib-linstor.service
271-
/etc/xapi.d/plugins/linstor-manager
272-
/opt/xensource/bin/linstor-kv-tool
273-
/opt/xensource/libexec/fork-log-daemon
274-
/opt/xensource/libexec/linstor-monitord
275-
/opt/xensource/libexec/safe-umount
276-
/opt/xensource/sm/CephFSSR
277-
/opt/xensource/sm/CephFSSR.py
278-
/opt/xensource/sm/GlusterFSSR
279-
/opt/xensource/sm/GlusterFSSR.py
280-
/opt/xensource/sm/linstorjournaler.py
281-
/opt/xensource/sm/LinstorSR
282-
/opt/xensource/sm/LinstorSR.py
283-
/opt/xensource/sm/linstorvhdutil.py
284-
/opt/xensource/sm/linstorvolumemanager.py
285-
/opt/xensource/sm/MooseFSSR
286-
/opt/xensource/sm/MooseFSSR.py
287-
/opt/xensource/sm/XFSSR
288-
/opt/xensource/sm/XFSSR.py
289-
/opt/xensource/sm/ZFSSR
290-
/opt/xensource/sm/ZFSSR.py
291-
/opt/xensource/sm/LargeBlockSR
292-
/opt/xensource/sm/LargeBlockSR.py
293-
%{_unitdir}/linstor-monitor.service
294-
%{python3_sitelib}/__pycache__/sm_typing*pyc
295-
%{python3_sitelib}/sm_typing.py
267+
# compat symlinks and stubs
268+
/opt/xensource/bin/blktap2
269+
/opt/xensource/bin/tapdisk-cache-stats
270+
/opt/xensource/sm/DummySR
271+
/opt/xensource/sm/EXTSR
272+
/opt/xensource/sm/FileSR
273+
/opt/xensource/sm/HBASR
274+
/opt/xensource/sm/ISOSR
275+
/opt/xensource/sm/LVHDoHBASR
276+
/opt/xensource/sm/LVHDoISCSISR
277+
/opt/xensource/sm/LVHDSR
278+
/opt/xensource/sm/LVMoHBASR
279+
/opt/xensource/sm/LVMoISCSISR
280+
/opt/xensource/sm/LVMSR
281+
/opt/xensource/sm/NFSSR
282+
/opt/xensource/sm/RawISCSISR
283+
/opt/xensource/sm/SMBSR
284+
/opt/xensource/sm/udevSR
285+
/opt/xensource/sm/BaseISCSI.py
286+
/opt/xensource/sm/LUNperVDI.py
287+
/opt/xensource/sm/SR.py
288+
/opt/xensource/sm/SRCommand.py
289+
/opt/xensource/sm/VDI.py
290+
/opt/xensource/sm/cleanup.py
291+
/opt/xensource/sm/devscan.py
292+
/opt/xensource/sm/fjournaler.py
293+
/opt/xensource/sm/flock.py
294+
/opt/xensource/sm/ipc.py
295+
/opt/xensource/sm/iscsilib.py
296+
/opt/xensource/sm/journaler.py
297+
/opt/xensource/sm/lock.py
298+
/opt/xensource/sm/lock_queue.py
299+
/opt/xensource/sm/lvhdutil.py
300+
/opt/xensource/sm/lvmanager.py
301+
/opt/xensource/sm/lvmcache.py
302+
/opt/xensource/sm/lvutil.py
303+
/opt/xensource/sm/metadata.py
304+
/opt/xensource/sm/srmetadata.py
305+
/opt/xensource/sm/mpath_cli.py
306+
/opt/xensource/sm/mpath_dmp.py
307+
/opt/xensource/sm/mpath_null.py
308+
/opt/xensource/sm/mpathcount.py
309+
/opt/xensource/sm/mpathutil.py
310+
/opt/xensource/sm/nfs.py
311+
/opt/xensource/sm/refcounter.py
312+
/opt/xensource/sm/resetvdis.py
313+
/opt/xensource/sm/scsiutil.py
314+
/opt/xensource/sm/scsi_host_rescan.py
315+
/opt/xensource/sm/sysdevice.py
316+
/opt/xensource/sm/util.py
317+
/opt/xensource/sm/cifutils.py
318+
/opt/xensource/sm/verifyVHDsOnSR.py
319+
/opt/xensource/sm/vhdutil.py
320+
/opt/xensource/sm/trim_util.py
321+
/opt/xensource/sm/xs_errors.py
322+
/opt/xensource/sm/wwid_conf.py
323+
/opt/xensource/sm/pluginutil.py
324+
/opt/xensource/sm/constants.py
325+
/opt/xensource/sm/cbtutil.py
326+
327+
# # XCP-ng
328+
# /etc/systemd/system/drbd-reactor.service.d/override.conf
329+
# /etc/systemd/system/linstor-satellite.service.d/override.conf
330+
# /etc/systemd/system/var-lib-linstor.service
331+
# /etc/xapi.d/plugins/linstor-manager
332+
# /opt/xensource/bin/linstor-kv-tool
333+
# /opt/xensource/libexec/fork-log-daemon
334+
# /opt/xensource/libexec/linstor-monitord
335+
# /opt/xensource/libexec/safe-umount
336+
# /opt/xensource/sm/CephFSSR
337+
# /opt/xensource/sm/CephFSSR.py
338+
# /opt/xensource/sm/GlusterFSSR
339+
# /opt/xensource/sm/GlusterFSSR.py
340+
# /opt/xensource/sm/linstorjournaler.py
341+
# /opt/xensource/sm/LinstorSR
342+
# /opt/xensource/sm/LinstorSR.py
343+
# /opt/xensource/sm/linstorvhdutil.py
344+
# /opt/xensource/sm/linstorvolumemanager.py
345+
# /opt/xensource/sm/MooseFSSR
346+
# /opt/xensource/sm/MooseFSSR.py
347+
# /opt/xensource/sm/XFSSR
348+
# /opt/xensource/sm/XFSSR.py
349+
# /opt/xensource/sm/ZFSSR
350+
# /opt/xensource/sm/ZFSSR.py
351+
# /opt/xensource/sm/LargeBlockSR
352+
# /opt/xensource/sm/LargeBlockSR.py
353+
# %{_unitdir}/linstor-monitor.service
354+
# %{python3_sitelib}/__pycache__/sm_typing*pyc
355+
# %{python3_sitelib}/sm_typing.py
296356

297357
%package testresults
298358
Summary: test results for SM package
@@ -404,6 +464,7 @@ in /opt/xensource
404464
* Fri Jul 11 2025 Yann Dirson <yann.dirson@vates.tech> - 4.1.3-0.ydi.1
405465
- New upstream
406466
- Dropped all XS patches, all assumed integrated upstream
467+
- Skipped all XCP-ng patches for now
407468

408469
* Thu Jul 10 2025 Yann Dirson <yann.dirson@vates.tech> - 3.2.12-8.0.ydi.1
409470
- Adjust deps for Almalinux 9

0 commit comments

Comments
 (0)