[PATCH 2/7] Don't try to specify bitmap for RAID0 since mdadm doesn't allow it. (#562023)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 storage/devices.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 9e95084..fa7ab4f 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -2754,7 +2754,8 @@ class MDRaidArrayDevice(StorageDevice):
             spares = len(self.devices) - self.memberDevices
             # Figure out format specific options
             metadata="1.1"
-            bitmap=True
+            # bitmaps are not meaningful on raid0 according to mdadm-3.0.3
+            bitmap = self.level != 0
             if getattr(self.format, "mountpoint", None) == "/boot":
                 metadata="1.0"
                 bitmap=False
-- 
1.6.2.5

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux