ses enumerator module should make protocol/label prop mutable
Currently both the ses and disk topo enumerators sets the protocol/label property via the topo_node_label_set() interface, which defaults to making the label property immutable. The problem with this is that the labels set by the ses enumerator are based on strings read directly from firmware and sometimes these strings can be incorrect or not in a format we prefer. The normal way we'd workaround this would be to override the label via a platform-specific XML file. But because the property has been created with the TOPO_PROP_IMMUTABLE flag, we're not able to fix it up.
So this issue is to track changing the ses and disk enumerator such that it sets the protocol/label property to be mutable on any topo nodes it creates.
Updated by Rob Johnston about 2 years ago
Note that this change has already been integrated into illumos-joyent via the commits below:
commit c9422bbeaa6b10c8d0b398f4678ccdc8877757ab Author: Rob Johnston <email@example.com> Date: Fri Jan 18 21:39:37 2019 +0000 OS-7521 disk enumerator should make protocol/label prop mutable commit 8ebfdc66bf6e05607c459ce7468ce7ec72f6f8c6 Author: Rob Johnston <firstname.lastname@example.org> Date: Mon Sep 10 21:40:22 2018 +0000 OS-7180 ses enumerator should trim leading/trailing whitespace from labels OS-7234 ses enumerator should make protocol/label prop mutable Reviewed by: Robert Mustacchi <email@example.com> Approved by: Jordan Hendricks <firstname.lastname@example.org>
Updated by Electric Monk about 2 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 469735ec6bb6989760271d57d715d349b93f607f Author: Rob Johnston <email@example.com> Date: 2019-01-29T22:13:11.000Z 10279 ses enumerator should trim leading/trailing whitespace from labels 10280 ses enumerator module should make protocol/label prop mutable Reviewed by: Robert Mustacchi <firstname.lastname@example.org> Reviewed by: Toomas Soome <email@example.com> Reviewed by: Gergő Mihály Doma <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>