diff options
author | mav <mav@FreeBSD.org> | 2013-04-27 06:57:39 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2013-04-27 06:57:39 +0000 |
commit | c0507568619dc28ceea42bb52443c6440398c3ae (patch) | |
tree | 995debb5c9a4c82eeeb2681a3678440642f5219e /sys/geom | |
parent | f22af47e50319ca60905770210ff6d370f5d5139 (diff) | |
download | FreeBSD-src-c0507568619dc28ceea42bb52443c6440398c3ae.zip FreeBSD-src-c0507568619dc28ceea42bb52443c6440398c3ae.tar.gz |
Return "descr" field alike to "Intel RAID1 volume" for GEOM RAID to make
it look better in bsdinstall.
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/raid/g_raid.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/geom/raid/g_raid.c b/sys/geom/raid/g_raid.c index e3dd6ba..0d7ac49 100644 --- a/sys/geom/raid/g_raid.c +++ b/sys/geom/raid/g_raid.c @@ -2357,6 +2357,10 @@ g_raid_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp, vol = pp->private; g_topology_unlock(); sx_xlock(&sc->sc_lock); + sbuf_printf(sb, "%s<descr>%s %s volume</descr>\n", indent, + sc->sc_md->mdo_class->name, + g_raid_volume_level2str(vol->v_raid_level, + vol->v_raid_level_qualifier)); sbuf_printf(sb, "%s<Label>%s</Label>\n", indent, vol->v_name); sbuf_printf(sb, "%s<RAIDLevel>%s</RAIDLevel>\n", indent, |