summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_disk.c
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2011-02-26 14:58:54 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2011-02-26 14:58:54 +0000
commit3fa7ecd6134abe348569c648a52df0da771219ae (patch)
tree44bde4d5f256ba7cfb26815701cdc05607d77274 /sys/geom/geom_disk.c
parent34864eccf3e5ec4e2a15c089a5f21e4496eaeb4d (diff)
downloadFreeBSD-src-3fa7ecd6134abe348569c648a52df0da771219ae.zip
FreeBSD-src-3fa7ecd6134abe348569c648a52df0da771219ae.tar.gz
Add the disk ident and a human-meaningful description (here, the disk model
string) to the geom_disk config XML so that they are easily accessible from userland. MFC after: 1 week
Diffstat (limited to 'sys/geom/geom_disk.c')
-rw-r--r--sys/geom/geom_disk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c
index 1d17e81..818b656 100644
--- a/sys/geom/geom_disk.c
+++ b/sys/geom/geom_disk.c
@@ -371,6 +371,8 @@ g_disk_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp, struct g
indent, dp->d_fwheads);
sbuf_printf(sb, "%s<fwsectors>%u</fwsectors>\n",
indent, dp->d_fwsectors);
+ sbuf_printf(sb, "%s<ident>%s</ident>\n", indent, dp->d_ident);
+ sbuf_printf(sb, "%s<descr>%s</descr>\n", indent, dp->d_descr);
}
}
OpenPOWER on IntegriCloud