HomeFreeBSD

Add load_nvlist() error handling

Description

Add load_nvlist() error handling

Add the missing error handling to load_nvlist(). There's no good
reason this needs to be fatal. All callers of load_nvlist() do
correctly handle an error condition and it is preferable that an
error be returned. This will allow 'zpool import -FX' to safely
attempt to rollback through previous txgs looking for a good one.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1120

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Nov 30 2012, 7:23 PM
Parents
rGc372b36e3eba: Allow GPT+EFI vdevs for root pools
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGc3275b56a147: Add load_nvlist() error handling (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Nov 30 2012, 9:48 PM