Commit 5a490f05 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Fix the wrong test for user-configured Transient storage.

Spotted by:	nav
parent 0fb00eb7
...@@ -509,13 +509,11 @@ STV_Config(const char *spec) ...@@ -509,13 +509,11 @@ STV_Config(const char *spec)
void void
STV_Config_Transient(void) STV_Config_Transient(void)
{ {
const struct stevedore *stv;
ASSERT_MGT(); ASSERT_MGT();
VTAILQ_FOREACH(stv, &stevedores, list)
if (!strcmp(stv->ident, TRANSIENT_STORAGE)) if (stv_transient == NULL)
return; STV_Config(TRANSIENT_STORAGE "=malloc");
STV_Config(TRANSIENT_STORAGE "=malloc");
} }
/*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/
...@@ -529,6 +527,8 @@ stv_cli_list(struct cli *cli, const char * const *av, void *priv) ...@@ -529,6 +527,8 @@ stv_cli_list(struct cli *cli, const char * const *av, void *priv)
(void)av; (void)av;
(void)priv; (void)priv;
cli_out(cli, "Storage devices:\n"); cli_out(cli, "Storage devices:\n");
stv = stv_transient;
cli_out(cli, "\tstorage.%s = %s\n", stv->ident, stv->name);
VTAILQ_FOREACH(stv, &stevedores, list) VTAILQ_FOREACH(stv, &stevedores, list)
cli_out(cli, "\tstorage.%s = %s\n", stv->ident, stv->name); cli_out(cli, "\tstorage.%s = %s\n", stv->ident, stv->name);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment