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
This commit is contained in:
parent
4f294e1289
commit
d8d61ef8fc
@ -1247,6 +1247,8 @@ g_eli_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp,
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user