Skip to content

Commit

Permalink
10321 disk enumerator should make protocol/label prop mutable
Browse files Browse the repository at this point in the history
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
Rob Johnston authored and Dan McDonald committed Mar 13, 2019
1 parent 0b42792 commit 36f5a10
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions usr/src/lib/fm/topo/modules/common/disk/disk_common.c
Expand Up @@ -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.
*/

/*
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 36f5a10

Please sign in to comment.