freebsd-dev/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Xin LI 290a1ba9a4 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 (e8fd45a0f9)
MFC after:	1 month
2013-01-10 19:26:56 +00:00
..
sys The current ZFS code expects ddt_zap_count to always succeed by asserting 2013-01-10 19:26:56 +00:00
arc.c MFV r243013 and r243267: 2012-11-25 16:32:07 +00:00
bplist.c Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
bpobj.c Merge recent zfs vendor changes, sync code and adjust userland DEBUG. 2012-09-12 18:05:43 +00:00
bptree.c Merge recent zfs vendor changes, sync code and adjust userland DEBUG. 2012-09-12 18:05:43 +00:00
dbuf.c MFV r243013 and r243267: 2012-11-25 16:32:07 +00:00
ddt_zap.c The current ZFS code expects ddt_zap_count to always succeed by asserting 2013-01-10 19:26:56 +00:00
ddt.c The current ZFS code expects ddt_zap_count to always succeed by asserting 2013-01-10 19:26:56 +00:00
dmu_diff.c Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
dmu_object.c Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
dmu_objset.c Merge recent vendor changes: 2012-08-28 12:25:37 +00:00
dmu_send.c Merge recent zfs vendor changes, sync code and adjust userland DEBUG. 2012-09-12 18:05:43 +00:00
dmu_traverse.c Merge recent zfs vendor changes, sync code and adjust userland DEBUG. 2012-09-12 18:05:43 +00:00
dmu_tx.c Merge recent vendor changes in ZFS. 2012-09-26 09:37:58 +00:00
dmu_zfetch.c Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
dmu.c Add loader(8) tunable to enable/disable nopwrite functionality: 2012-11-25 16:54:43 +00:00
dnode_sync.c Merge recent zfs vendor changes, sync code and adjust userland DEBUG. 2012-09-12 18:05:43 +00:00
dnode.c Merge recent zfs vendor changes, sync code and adjust userland DEBUG. 2012-09-12 18:05:43 +00:00
dsl_dataset.c It is possible to recursively destroy snapshots even if the snapshot 2012-09-23 20:12:10 +00:00
dsl_deadlist.c Merge recent vendor changes: 2012-08-28 12:25:37 +00:00
dsl_deleg.c Introduce "feature flags" for ZFS pools (bump SPA version to 5000). 2012-06-11 11:35:22 +00:00
dsl_dir.c Merge recent zfs vendor changes, sync code and adjust userland DEBUG. 2012-09-12 18:05:43 +00:00
dsl_pool.c MFV r243013 and r243267: 2012-11-25 16:32:07 +00:00
dsl_prop.c Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
dsl_scan.c Add TRIM support. 2012-09-23 19:40:58 +00:00
dsl_synctask.c Merge recent zfs vendor changes, sync code and adjust userland DEBUG. 2012-09-12 18:05:43 +00:00
gzip.c
lzjb.c Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
metaslab.c MFV r242735: 2012-11-25 09:06:32 +00:00
refcount.c Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
rrwlock.c Return NULL pointer instead of B_FALSE as it is done in the vendor code. 2010-08-28 19:29:06 +00:00
sa.c zfs: correctly calculate dn_bonuslen for saving SAs to disk 2012-09-18 08:02:54 +00:00
sha256.c Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
spa_config.c Introduce "feature flags" for ZFS pools (bump SPA version to 5000). 2012-06-11 11:35:22 +00:00
spa_errlog.c Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
spa_history.c Merge recent vendor changes and sync code: 2012-09-05 12:02:09 +00:00
spa_misc.c MFV r242735: 2012-11-25 09:06:32 +00:00
spa.c zfs: solaris doesn't have KM_ZERO, kmem_zalloc should be used instead 2012-12-23 19:58:41 +00:00
space_map.c MFV r242735: 2012-11-25 09:06:32 +00:00
trim_map.c Upgrades trim free request sizes before inserting them into to free map, 2012-12-13 17:06:38 +00:00
txg.c Merge recent vendor changes: 2012-08-23 19:32:57 +00:00
uberblock.c Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
unique.c
vdev_cache.c Disable vdev cache (readahead) by default. 2011-06-28 06:32:35 +00:00
vdev_disk.c Import illumos changeset 13570:3411fd5f1589 2012-05-27 16:00:00 +00:00
vdev_file.c Remove the support for using non-mpsafe filesystem modules. 2012-10-22 17:50:54 +00:00
vdev_geom.c zfs: solaris doesn't have KM_ZERO, kmem_zalloc should be used instead 2012-12-23 19:58:41 +00:00
vdev_label.c Added vfs.zfs.vdev.trim_on_init sysctl which allows full vdev trim on 2012-12-13 17:39:07 +00:00
vdev_mirror.c Add TRIM support. 2012-09-23 19:40:58 +00:00
vdev_missing.c Import illumos changeset 13570:3411fd5f1589 2012-05-27 16:00:00 +00:00
vdev_queue.c Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
vdev_raidz.c Add TRIM support. 2012-09-23 19:40:58 +00:00
vdev_root.c Import illumos changeset 13570:3411fd5f1589 2012-05-27 16:00:00 +00:00
vdev.c Add TRIM support. 2012-09-23 19:40:58 +00:00
zap_leaf.c Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
zap_micro.c Merge recent zfs vendor changes, sync code and adjust userland DEBUG. 2012-09-12 18:05:43 +00:00
zap.c Merge recent zfs vendor changes, sync code and adjust userland DEBUG. 2012-09-12 18:05:43 +00:00
zfeature.c Merge recent vendor changes: 2012-08-28 12:25:37 +00:00
zfs_acl.c Resurrect the ZFS "aclmode" property 2011-07-18 07:16:44 +00:00
zfs_byteswap.c Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
zfs_ctldir.c zfsctl_snapdir_lookup: obtain a snapname in the remount case 2012-11-04 14:43:15 +00:00
zfs_debug.c Merge recent zfs vendor changes, sync code and adjust userland DEBUG. 2012-09-12 18:05:43 +00:00
zfs_dir.c zfs_dirlook: bailout early if directory is unlinked 2012-11-04 14:50:08 +00:00
zfs_fm.c Merge illumos revisions 13572, 13573, 13574: 2012-01-24 23:09:54 +00:00
zfs_fuid.c Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
zfs_ioctl.c zfs: create devices/geoms from zvols after receiveing them 2012-11-24 13:07:31 +00:00
zfs_log.c Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
zfs_onexit.c Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
zfs_replay.c Implement replying of ACLs updates. ACL changes should go to ZIL only 2011-12-18 12:19:03 +00:00
zfs_rlock.c Merge recent zfs vendor changes, sync code and adjust userland DEBUG. 2012-09-12 18:05:43 +00:00
zfs_sa.c Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
zfs_vfsops.c zfs: overhaul zfs-vfs glue for vnode life-cycle management 2012-11-25 15:33:26 +00:00
zfs_vnops.c Use SA_ZPL_CRTIME instead of SA_ZPL_CTIME for creation time. 2012-12-03 04:25:37 +00:00
zfs_znode.c zfs: overhaul zfs-vfs glue for vnode life-cycle management 2012-11-25 15:33:26 +00:00
zfs.conf
zil.c Add TRIM support. 2012-09-23 19:40:58 +00:00
zio_checksum.c Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
zio_compress.c Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
zio_inject.c Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
zio.c Upgrades trim free request sizes before inserting them into to free map, 2012-12-13 17:06:38 +00:00
zle.c Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
zrlock.c Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
zvol.c MFV r243013 and r243267: 2012-11-25 16:32:07 +00:00