[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
support for partitioned linux md devices
From: |
Miquel van Smoorenburg |
Subject: |
support for partitioned linux md devices |
Date: |
Thu, 23 Aug 2012 09:58:10 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
I've also filed this as a debian bugreport,
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=684713
Linux md raid array devices come in two flavours: partionable
(/dev/md_d0) and non-partitionable (/dev/md0). Or at least,
that used to be the case, until kernel 2.6.28 where the two have
been consolidated. Now all md devices can have partitions.
However, there is one minor oversight/bug in the kernel: the
sysfs "range" key is still set to "1" for md devices. That means
libparted thinks that it's not possible to partition that device,
when in fact it is.
The attached patch reckognizes that situation: if running on
a kernel >= 2.6.28, and the device is a PED_DEVICE_MD, and the
sysfs 'range' key is set to '1', _device_get_partition_range()
returns MAX_NUM_PARTS instead.
Mike.
md-partitions.patch
Description: Text Data
- support for partitioned linux md devices,
Miquel van Smoorenburg <=