Override default SPA config location via environment
authorCyril Plisko <cyril.plisko@mountall.com>
Mon, 24 Jun 2013 06:45:20 +0000 (09:45 +0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 1 Jul 2013 20:25:44 +0000 (13:25 -0700)
commit64d7b6cf75e52a4698d9bdec61745573c39d2e5a
tree71493f81e9a43a6f0497b34b16fc84af1d8141a5
parent20c17b96c91f1231c59009236afd4277cbc253a8
Override default SPA config location via environment

When using zdb with non-default SPA config file it is not convenient
to add -U <non-default-config-file-path> all the time. This commit
introduces support for setting/overriding SPA config location via
environment variable 'SPA_CONFIG_PATH'.

If -U flag is specified in the command line it will override any other
value as usual.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1545
cmd/zdb/zdb.c