It's better than the size of the first member device. This was leading to a max size smaller than the current size for multi-device btrfs filesystems. --- blivet/devices.py | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/blivet/devices.py b/blivet/devices.py index a18dba7..f4f37e6 100644 --- a/blivet/devices.py +++ b/blivet/devices.py @@ -3938,6 +3938,12 @@ class BTRFSDevice(StorageDevice): raise RuntimeError("cannot directly set size of btrfs volume")
@property + def currentSize(self): + # at some point we'll want to make this a bit more realistic, but the + # btrfs tools don't provide much of this type of information + return self.size + + @property def status(self): return not any([not d.status for d in self.parents])
--- blivet/devicetree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/devicetree.py b/blivet/devicetree.py index 97adb7a..2fec264 100644 --- a/blivet/devicetree.py +++ b/blivet/devicetree.py @@ -1874,7 +1874,7 @@ class DeviceTree(object): # hide any subtrees that begin with an ignored disk for disk in [d for d in self._devices if d.isDisk]: if ((self.ignoredDisks and disk.name in self.ignoredDisks) or - (self.exclusiveDisks and disk.name not in self.ignoredDisks)): + (self.exclusiveDisks and disk.name not in self.exclusiveDisks)): self.hide(disk)
self.teardownAll()
--- blivet/fcoe.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/blivet/fcoe.py b/blivet/fcoe.py index 19831fa..5dc6f5b 100644 --- a/blivet/fcoe.py +++ b/blivet/fcoe.py @@ -70,7 +70,11 @@ class fcoe(object): udev_settle()
def _startEDD(self): - rc = util.capture_output(["/usr/libexec/fcoe/fcoe_edd.sh", "-i"]) + try: + rc = util.capture_output(["/usr/libexec/fcoe/fcoe_edd.sh", "-i"]) + except OSError as e: + rc = e.strerror + if not rc.startswith("NIC="): log.info("No FCoE EDD info found: %s" % rc.rstrip()) return
--- blivet/__init__.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
diff --git a/blivet/__init__.py b/blivet/__init__.py index 68225c3..913ada5 100644 --- a/blivet/__init__.py +++ b/blivet/__init__.py @@ -31,6 +31,17 @@ ROOT_PATH = '/' shortProductName = '' productName = '' bootLoaderError = Exception +ERROR_RAISE = 0 + +class ErrorHandler(object): + def cb(self, *args, **kwargs): + return ERROR_RAISE + +errorHandler = ErrorHandler() + +## +## end installer stubs +##
import os import time @@ -89,6 +100,8 @@ def enable_installer_mode(): global productName global get_bootloader global BootLoaderError + global errorHandler + global ERROR_RAISE
from pyanaconda import isys from pyanaconda.constants import ROOT_PATH @@ -96,6 +109,8 @@ def enable_installer_mode(): from pyanaconda.constants import productName from pyanaconda.bootloader import get_bootloader from pyanaconda.bootloader import BootLoaderError + from pyanaconda.errors import errorHandler + from pyanaconda.errors import ERROR_RAISE
from pyanaconda.anaconda_log import program_log_lock util.program_log_lock = program_log_lock
anaconda-patches@lists.fedorahosted.org