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)
commitc3275b56a1470ed255441df6ff105d0c3c095d8b
treeb33ec47c0bce175d204a92355b74c1178841a93e
parentc372b36e3eba18d1a8747b8375e3e7c049d40c89
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
module/zfs/spa.c