1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-22 11:17:19 +00:00

Return "descr" field alike to "Intel RAID1 volume" for GEOM RAID to make

it look better in bsdinstall.
This commit is contained in:
Alexander Motin 2013-04-27 06:57:39 +00:00
parent 276ea50a45
commit bcb6ad36f2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=249974

View File

@ -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,