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:
parent
08f0d365fd
commit
f1c90ec108
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.49 -
|
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.
|
Add extended device (blkext) and MD partition (mdp) types to filters.
|
||||||
Fix and precise metadata read errors for segment areas.
|
Fix and precise metadata read errors for segment areas.
|
||||||
Fix segment metadata read function errors to use proper segment name.
|
Fix segment metadata read function errors to use proper segment name.
|
||||||
|
@ -43,6 +43,10 @@ static int _is_partitionable(struct device *dev)
|
|||||||
{
|
{
|
||||||
int parts = max_partitions(MAJOR(dev->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))
|
if ((parts <= 1) || (MINOR(dev->dev) % parts))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user