diff options
author | Rob Johnston <rob.johnston@joyent.com> | 2019-01-18 21:39:37 +0000 |
---|---|---|
committer | Dan McDonald <danmcd@joyent.com> | 2019-03-12 20:08:55 -0400 |
commit | 36f5a109a7ea7c74a4d90af4f589df489e7537c0 (patch) | |
tree | e1b9ed77e0e63e980863ccf167d8fa4165bd6ea7 /usr/src | |
parent | 0b427924a934b5ebe2ecd53ed66d8e65892da75e (diff) | |
download | illumos-joyent-36f5a109a7ea7c74a4d90af4f589df489e7537c0.tar.gz |
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>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/lib/fm/topo/modules/common/disk/disk_common.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/lib/fm/topo/modules/common/disk/disk_common.c b/usr/src/lib/fm/topo/modules/common/disk/disk_common.c index b1ddbd06e9..8088e79f02 100644 --- a/usr/src/lib/fm/topo/modules/common/disk/disk_common.c +++ b/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; |