Brian Behlendorf e8fd45a0f9 Add ddt_object_count() error handling
The interface for the ddt_zap_count() function assumes it can
never fail.  However, internally ddt_zap_count() is implemented
with zap_count() which can potentially fail.  Now because there
was no way to return the error to the caller a VERIFY was used
to ensure this case never happens.

Unfortunately, it has been observed that pools can be damaged in
such a way that zap_count() fails.  The result is that the pool can
not be imported without hitting the VERIFY and crashing the system.

This patch reworks ddt_object_count() so the error can be safely
caught and returned to the caller.  This allows a pool which has
be damaged in this way to be safely rewound for import.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #910
2012-10-29 08:57:45 -07:00
..
2012-08-27 11:47:44 -07:00
2012-08-27 12:01:37 -07:00
2012-10-29 08:57:45 -07:00
2011-05-04 10:02:37 -07:00
2012-08-27 12:01:37 -07:00
2012-03-22 13:03:47 -07:00
2012-03-07 16:28:00 -08:00
2012-08-27 12:01:37 -07:00
2012-10-11 15:07:09 -07:00
2011-02-10 09:21:43 -08:00
2012-07-11 13:33:31 -07:00
2011-03-02 11:43:50 -08:00
2011-09-27 16:12:36 -07:00
2012-10-03 13:32:48 -07:00
2012-07-10 11:31:55 -07:00
2012-02-27 14:08:17 -08:00
2011-02-10 09:27:21 -08:00
2011-11-28 15:45:51 -08:00
2012-03-22 13:03:47 -07:00
2011-08-02 10:34:55 -07:00
2012-03-22 13:03:47 -07:00
2012-06-29 09:56:51 -07:00
2011-02-23 12:29:38 -08:00