Ensure correct type of mpath cache member list
This commit is contained in:
parent
6acd04a9fb
commit
d90d7cbc66
28
0003-Ensure-correct-type-of-mpath-cache-member-list.patch
Normal file
28
0003-Ensure-correct-type-of-mpath-cache-member-list.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
From d01281a69e317d7bae4a7698edb6583b6310d5c1 Mon Sep 17 00:00:00 2001
|
||||||
|
From: David Lehman <dlehman@redhat.com>
|
||||||
|
Date: Tue, 19 Mar 2019 11:51:47 -0400
|
||||||
|
Subject: [PATCH] Ensure correct type of mpath cache member list.
|
||||||
|
|
||||||
|
Related: rhbz#1672971
|
||||||
|
---
|
||||||
|
blivet/static_data/mpath_info.py | 7 +++++--
|
||||||
|
1 file changed, 5 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/blivet/static_data/mpath_info.py b/blivet/static_data/mpath_info.py
|
||||||
|
index 49ba4709..64958ba8 100644
|
||||||
|
--- a/blivet/static_data/mpath_info.py
|
||||||
|
+++ b/blivet/static_data/mpath_info.py
|
||||||
|
@@ -42,8 +42,11 @@ def is_mpath_member(self, device):
|
||||||
|
:param str device: path of the device to query
|
||||||
|
|
||||||
|
"""
|
||||||
|
- if self._members is None and availability.BLOCKDEV_MPATH_PLUGIN.available:
|
||||||
|
- self._members = set(blockdev.mpath.get_mpath_members())
|
||||||
|
+ if self._members is None:
|
||||||
|
+ if availability.BLOCKDEV_MPATH_PLUGIN.available:
|
||||||
|
+ self._members = set(blockdev.mpath.get_mpath_members())
|
||||||
|
+ else:
|
||||||
|
+ self._members = set()
|
||||||
|
|
||||||
|
device = os.path.realpath(device)
|
||||||
|
device = device[len("/dev/"):]
|
@ -23,7 +23,7 @@ Version: 3.1.3
|
|||||||
|
|
||||||
#%%global prerelease .b2
|
#%%global prerelease .b2
|
||||||
# prerelease, if defined, should be something like .a1, .b1, .b2.dev1, or .c2
|
# prerelease, if defined, should be something like .a1, .b1, .b2.dev1, or .c2
|
||||||
Release: 2%{?prerelease}%{?dist}
|
Release: 3%{?prerelease}%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
%global realname blivet
|
%global realname blivet
|
||||||
@ -31,6 +31,7 @@ License: LGPLv2+
|
|||||||
Source0: http://github.com/storaged-project/blivet/archive/%{realname}-%{realversion}.tar.gz
|
Source0: http://github.com/storaged-project/blivet/archive/%{realname}-%{realversion}.tar.gz
|
||||||
Patch0: 0001-force-lvm-plugin.patch
|
Patch0: 0001-force-lvm-plugin.patch
|
||||||
Patch1: 0002-Support-legacy-MBR-as-part-of-UEFI.patch
|
Patch1: 0002-Support-legacy-MBR-as-part-of-UEFI.patch
|
||||||
|
Patch3: 0003-Ensure-correct-type-of-mpath-cache-member-list.patch
|
||||||
|
|
||||||
# Versions of required components (done so we make sure the buildrequires
|
# Versions of required components (done so we make sure the buildrequires
|
||||||
# match the requires versions of things).
|
# match the requires versions of things).
|
||||||
@ -191,6 +192,9 @@ configuration.
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 21 2019 Vojtech Trefny <vtrefny@redhat.com> - 3.1.3-3
|
||||||
|
- Ensure correct type of mpath cache member list
|
||||||
|
|
||||||
* Mon Mar 11 2019 Vojtech Trefny <vtrefny@redhat.com> - 3.1.3-2
|
* Mon Mar 11 2019 Vojtech Trefny <vtrefny@redhat.com> - 3.1.3-2
|
||||||
- Support legacy MBR (msdos) as part of UEFI to enable hybrid builds
|
- Support legacy MBR (msdos) as part of UEFI to enable hybrid builds
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user