Date: Sat, 27 Apr 2013 06:57:39 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r249974 - head/sys/geom/raid Message-ID: <201304270657.r3R6vd6I058170@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Sat Apr 27 06:57:39 2013 New Revision: 249974 URL: http://svnweb.freebsd.org/changeset/base/249974 Log: Return "descr" field alike to "Intel RAID1 volume" for GEOM RAID to make it look better in bsdinstall. Modified: head/sys/geom/raid/g_raid.c Modified: head/sys/geom/raid/g_raid.c ============================================================================== --- head/sys/geom/raid/g_raid.c Sat Apr 27 06:54:49 2013 (r249973) +++ head/sys/geom/raid/g_raid.c Sat Apr 27 06:57:39 2013 (r249974) @@ -2357,6 +2357,10 @@ g_raid_dumpconf(struct sbuf *sb, const c 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,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304270657.r3R6vd6I058170>