]> sourceware.org Git - lvm2.git/commitdiff
Check MD devices for a partition table during device scan.
authorsnitzer <snitzer>
Thu, 9 Jul 2009 22:50:45 +0000 (22:50 +0000)
committersnitzer <snitzer>
Thu, 9 Jul 2009 22:50:45 +0000 (22:50 +0000)
WHATS_NEW
lib/device/device.c

index 4ecf16c2b0ae5cbc49d9b30c1c11c7e43b28cf6b..cd0b197651ed6767df190053901b68a67c1bcf61 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.49 - 
 ================================
+  Check MD devices for a partition table during device scan.
   Add extended device (blkext) and MD partition (mdp) types to filters.
   Fix and precise metadata read errors for segment areas.
   Fix segment metadata read function errors to use proper segment name.
index 9d3c1cf7df476a019d1f3deb1f628783ac9e151e..3248dd65559e59413c39fc6a61855df1e27e1ca4 100644 (file)
@@ -43,6 +43,10 @@ static int _is_partitionable(struct device *dev)
 {
        int parts = max_partitions(MAJOR(dev->dev));
 
+       /* All MD devices are partitionable via blkext (as of 2.6.28) */
+       if (MAJOR(dev->dev) == md_major())
+               return 1;
+
        if ((parts <= 1) || (MINOR(dev->dev) % parts))
                return 0;
 
This page took 0.044712 seconds and 5 git commands to generate.