HomeFreeBSD

Override default SPA config location via environment

Description

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

Details

Provenance
Cyril Plisko <cyril.plisko@mountall.com>Authored on Jun 24 2013, 6:45 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jul 1 2013, 8:25 PM
Parents
rG20c17b96c91f: Add absent \n at the end of the help text line
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG64d7b6cf75e5: Override default SPA config location via environment (authored by Cyril Plisko <cyril.plisko@mountall.com>).Jul 1 2013, 8:25 PM