diff options
author | Roman Sobanski <roman.sobanski@intel.com> | 2018-08-13 07:52:53 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2018-09-27 16:28:35 +0200 |
commit | 5c4cc0c8205d367eb68d99dbd2dc0f93e538eb43 (patch) | |
tree | 3d8b7a53406f81b9a774591593bf62776cba7d24 /platform-intel.c | |
parent | imsm: Block volume creation with empty name (diff) | |
download | mdadm-5c4cc0c8205d367eb68d99dbd2dc0f93e538eb43.tar.xz mdadm-5c4cc0c8205d367eb68d99dbd2dc0f93e538eb43.zip |
imsm: Avoid duplicate entries in --detail-platform
In some scenarios mdadm --detail-platform shows duplicated info about one
of controllers. Block it.
Signed-off-by: Roman Sobanski <roman.sobanski@intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'platform-intel.c')
-rw-r--r-- | platform-intel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platform-intel.c b/platform-intel.c index a11101db..04bffc57 100644 --- a/platform-intel.c +++ b/platform-intel.c @@ -371,6 +371,9 @@ static int scan(const void *start, const void *end, const void *data) if (__le16_to_cpu(ptr->vendorID) != 0x8086) return 0; + if (get_orom_by_device_id(ptr->deviceID)) + return 0; + for (offset = 0; offset < len; offset += 4) { const void *mem = start + offset; |