]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r268855: MFV r268848:
authordelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 2 Aug 2014 03:56:06 +0000 (03:56 +0000)
committerdelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 2 Aug 2014 03:56:06 +0000 (03:56 +0000)
commitc980e797ad3127557825d0c61d0c8975ca90ddd5
tree7404e6333ff3ecd4049cbff81119e02d6331e597
parent87cfaf22e9d31309787362138bf6ff387e8b580c
MFC r268855: MFV r268848:

Instead of asserting all zio's be properly aligned, only assert
on the logical ones.

Cap uberblocks at 8k, otherwise with ashift=17, there would be
only one uberblock.

This fixes a problem that zdb would trip assert on pools with
ashift >= 0xe (8k).

While there, also change the code so it only attempt to condense
space map unless the uncondensed size consumes greater than
zfs_metaslab_condense_block_threshold blocks.

Illumos issue:
  4958 zdb trips assert on pools with ashift >= 0xe

git-svn-id: svn://svn.freebsd.org/base/stable/10@269416 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
cddl/contrib/opensolaris/cmd/ztest/ztest.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/vdev_impl.h
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zio.h
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_debug.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zio.c