1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Check MD devices for a partition table during device scan.

This commit is contained in:
Mike Snitzer 2009-07-09 22:50:45 +00:00
parent 08f0d365fd
commit f1c90ec108
2 changed files with 5 additions and 0 deletions

View File

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

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