]> git.proxmox.com Git - mirror_zfs.git/commit
Don't upgrade a metaslab when the pool is not writable
authorTim Chase <tim@chase2k.com>
Thu, 14 Aug 2014 12:01:20 +0000 (07:01 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 18 Aug 2014 15:47:19 +0000 (08:47 -0700)
commit8b0a0840b405c67d7a2d4a78c9ebeb04fcb9d988
tree4e867c32ab71ed05429d175a34f405ba58672889
parentf3a7f6610f2df0217ba3b99099019417a954b673
Don't upgrade a metaslab when the pool is not writable

Illumos 4982 added code to metaslab_fragmentation() to proactively update
space maps when the spacemap_histogram feature is enabled.  This should
only happen when the pool is writeable.

References:
  https://www.illumos.org/issues/4982
  https://github.com/illumos/illumos-gate/commit/2e4c998

Signed-off-by: Tim Chase <tim@chase2k.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2595
module/zfs/metaslab.c