summaryrefslogtreecommitdiffstats
path: root/module/zfs/zap_leaf.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2015-02-12 15:05:21 -0800
committerBrian Behlendorf <[email protected]>2015-02-13 16:02:04 -0800
commit7d2868d5fc88a4c30769b44f56a3a88a4277a9ab (patch)
tree1549aac1284ba2ee63bd4924d5ca8eb1edd791eb /module/zfs/zap_leaf.c
parentcbedd7b03443f5cf7db142908251251c765ce3a5 (diff)
Skip bad DVAs during free by setting zfs_recover=1
When a bad DVA is encountered in metaslab_free_dva() the system should treat it as fatal. This indicates that somehow a damaged DVA was written to disk and that should be impossible. However, we have seen a handful of reports over the years of pools somehow being damaged in this way. Since this damage can render otherwise intact pools unimportable, and the consequence of skipping the bad DVA is only leaked free space, it makes sense to provide a mechanism to ignore the bad DVA. Setting the zfs_recover=1 module option will cause the DVA to be ignored which may allow the pool to be imported. Since zfs_recover=0 by default any pool attempting to free a bad DVA will treat it as a fatal error preserving the current behavior. Signed-off-by: Brian Behlendorf <[email protected]> Closes #3099 Issue #3090 Issue #2720
Diffstat (limited to 'module/zfs/zap_leaf.c')
0 files changed, 0 insertions, 0 deletions