Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   Don't try to specify bitmap for RAID0 since mdadm doesn't allow it. (#562023) (http://www.linux-archive.org/debian-user/321113-dont-try-specify-bitmap-raid0-since-mdadm-doesnt-allow-562023-a.html)

Hans de Goede 02-05-2010 07:01 AM

Don't try to specify bitmap for RAID0 since mdadm doesn't allow it. (#562023)
 
Ack.

On 02/05/2010 08:07 AM, David Lehman wrote:

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


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


All times are GMT. The time now is 05:09 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.