mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
filter-mpath: remove superfluous error message about mpath major not equal to dm major
This is a regression caused by commit 3bd9048854
.
The error message added with that commit "mpath major %d is not dm major %d" is
superfluous.
When scanning for mpath components, we're looking for a parent device.
But this parent device is not necessarily an mpath device (so the dm device)
if it exists - it can be any other device layered on top (e.g. an MD RAID device).
This commit is contained in:
parent
f0be9ac904
commit
c8daa15270
@ -1,5 +1,6 @@
|
||||
Version 2.02.101 -
|
||||
===================================
|
||||
Remove "mpath major is not dm major" msg for mpath component scan (2.02.94).
|
||||
Prevent cluster mirror logs from being corrupted by redundant checkpoints.
|
||||
Fix ignored lvmetad update on loop device configuration (2.02.99).
|
||||
Use LVM_PATH instead of hardcoded value in lvm2 activation systemd generator.
|
||||
|
@ -181,11 +181,8 @@ static int dev_is_mpath(struct dev_filter *f, struct device *dev)
|
||||
if (!get_sysfs_get_major_minor(sysfs_dir, parent_name, &major, &minor))
|
||||
return_0;
|
||||
|
||||
if (major != dt->device_mapper_major) {
|
||||
log_error("mpath major %d is not dm major %d.", major,
|
||||
dt->device_mapper_major);
|
||||
if (major != dt->device_mapper_major)
|
||||
return 0;
|
||||
}
|
||||
|
||||
return lvm_dm_prefix_check(major, minor, MPATH_PREFIX);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user