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 11 months ago
Note that this change has already been integrated into illumos-joyent via the commits below:
commit c9422bbeaa6b10c8d0b398f4678ccdc8877757ab Author: Rob Johnston <firstname.lastname@example.org> Date: Fri Jan 18 21:39:37 2019 +0000 OS-7521 disk enumerator should make protocol/label prop mutable commit 8ebfdc66bf6e05607c459ce7468ce7ec72f6f8c6 Author: Rob Johnston <email@example.com> 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 <firstname.lastname@example.org> Approved by: Jordan Hendricks <email@example.com>
Updated by Electric Monk 10 months ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 469735ec6bb6989760271d57d715d349b93f607f Author: Rob Johnston <firstname.lastname@example.org> 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 <email@example.com> Reviewed by: Toomas Soome <firstname.lastname@example.org> Reviewed by: Gergő Mihály Doma <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>