Add load_nvlist() error handling
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 30 Nov 2012 19:23:38 +0000 (11:23 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 30 Nov 2012 21:48:17 +0000 (13:48 -0800)
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


No differences found