Skip to content
Permalink
Browse files

10321 disk enumerator should make protocol/label prop mutable

Reviewed by: Jordan Hendricks <jordan.hendricks@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Igor Kozhukhov <igor@dilos.org>
Reviewed by: Gergő Doma <domag02@gmail.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
  • Loading branch information
rejohnst authored and danmcd committed Jan 18, 2019
1 parent 0b42792 commit 36f5a109a7ea7c74a4d90af4f589df489e7537c0
Showing with 3 additions and 2 deletions.
  1. +3 −2 usr/src/lib/fm/topo/modules/common/disk/disk_common.c
@@ -21,7 +21,7 @@

/*
* Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, Joyent, Inc.
* Copyright (c) 2019, Joyent, Inc.
*/

/*
@@ -154,7 +154,8 @@ disk_set_props(topo_mod_t *mod, tnode_t *parent,
"label error %s\n", topo_strerror(err));
goto error;
}
} else if (topo_node_label_set(dtn, label, &err) != 0) {
} else if (topo_prop_set_string(dtn, TOPO_PGROUP_PROTOCOL,
TOPO_PROP_LABEL, TOPO_PROP_MUTABLE, label, &err) != 0) {
topo_mod_dprintf(mod, "disk_set_props: "
"label_set error %s\n", topo_strerror(err));
goto error;

0 comments on commit 36f5a10

Please sign in to comment.
You can’t perform that action at this time.