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

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



---
 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


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