Author: pjd Date: Fri Oct 22 22:45:26 2010 New Revision: 214227 URL: http://svn.freebsd.org/changeset/base/214227
Log: Add State tag, so 'geli status' will report active/suspended status, eg: # geli status Name Status Components da0.eli SUSPENDED da0 da1.eli ACTIVE da1 Modified: head/sys/geom/eli/g_eli.c Modified: head/sys/geom/eli/g_eli.c ============================================================================== --- head/sys/geom/eli/g_eli.c Fri Oct 22 22:44:09 2010 (r214226) +++ head/sys/geom/eli/g_eli.c Fri Oct 22 22:45:26 2010 (r214227) @@ -1247,6 +1247,8 @@ g_eli_dumpconf(struct sbuf *sb, const ch sc->sc_ekeylen); sbuf_printf(sb, "%s<EncryptionAlgorithm>%s</EncryptionAlgorithm>\n", indent, g_eli_algo2str(sc->sc_ealgo)); + sbuf_printf(sb, "%s<State>%s</State>\n", indent, + (sc->sc_flags & G_ELI_FLAG_SUSPEND) ? "SUSPENDED" : "ACTIVE"); } static void _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"