1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-11-05 16:23:51 +03:00

scan: md metadata version 0.90 is at the end of disk

commit de28637
  scan: use full md filter when md 1.0 devices are present

missed the fact that md superblock version 0.90 also puts
metadata at the end of the device, so the full md filter
needs to be used when either 0.90 or 1.0 is present.
This commit is contained in:
Peter Rajnoha
2018-11-29 12:35:54 -06:00
committed by David Teigland
parent cd0fb0846d
commit cb04b84c79
2 changed files with 4 additions and 4 deletions

View File

@@ -422,7 +422,7 @@ int dev_is_md_with_end_superblock(struct dev_types *dt, struct device *dev)
log_very_verbose("Device %s %s is %s.",
dev_name(dev), attribute, version_string);
if (!strcmp(version_string, "1.0"))
if (!strcmp(version_string, "1.0") || !strcmp(version_string, "0.90"))
return 1;
return 0;
}