]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r272504: MFV r272494:
authordelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 20 Oct 2014 18:58:45 +0000 (18:58 +0000)
committerdelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 20 Oct 2014 18:58:45 +0000 (18:58 +0000)
commita1d16c975bb124779ad65707ccfc2c52b8734b32
treeccf0b87146fca00a2fbfc44d20ab7d50d850d41d
parentbe3fb6cb89615425c3bfcb799d4482f8c6c24b82
MFC r272504: MFV r272494:

Make space_map_truncate() always do space_map_reallocate().  Without
this, setting space_map_max_blksz would cause panic for existing pool,
as dmu_objset_set_blocksize would fail if the object have multiple blocks.

Illumos issues:
   5164 space_map_max_blksz causes panic, does not work
   5165 zdb fails assertion when run on pool with recently-enabled
spacemap_histogram feature

git-svn-id: svn://svn.freebsd.org/base/stable/10@273341 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/space_map.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/space_map.h