delphij f8200d9bc4 The current ZFS code expects ddt_zap_count to always succeed by asserting
the underlying zap_count() to return no errors.  However, it is possible
that the pool reaches to such a state where zap_count would return error,
leading to panics when a pool is imported.

This commit changes the ddt_zap_count to return error returned from
zap_count and handle the error appropriately.  With this change, it's now
possible to let zpool rollback damaged transaction groups and import the
pool.

Obtained from:	ZFS on Linux github (e8fd45a0f975c6b8ae8cd644714fc21f14fac2bf)
MFC after:	1 month
2013-01-10 19:26:56 +00:00
..
2013-01-09 01:54:17 +00:00
2012-10-10 08:36:38 +00:00
2012-11-01 04:07:08 +00:00
2012-12-28 09:19:49 +00:00
2012-10-10 08:36:38 +00:00
2013-01-04 09:52:09 +00:00
2013-01-03 23:12:08 +00:00
2013-01-09 20:10:45 +00:00