mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Improved error handling for extreme rewinds
The vdev_checkpoint_sm_object(), vdev_obsolete_sm_object(), and vdev_obsolete_counts_are_precise() functions assume that the only way a zap_lookup() can fail is if the requested entry is missing. While this is the most common cause, it's not the only cause. Attemping to access a damaged ZAP will result in other errors. The most likely scenario for accessing a damaged ZAP is during an extreme rewind pool import. Under these conditions the pool is expected to contain damaged objects and the import code was updated to handle this gracefully. Getting an ECKSUM error from these ZAPs after the pool in import a far less likely, therefore the behavior for call paths was not modified. Reviewed-by: Tim Chase <tim@chase2k.com> Reviewed-by: Matthew Ahrens <mahrens@delphix.com> Reviewed-by: Serapheim Dimitropoulos <serapheim.dimitro@delphix.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #7809 Closes #7921
This commit is contained in:
@@ -493,13 +493,13 @@ extern int zfs_vdev_cache_size;
|
||||
extern void vdev_indirect_sync_obsolete(vdev_t *vd, dmu_tx_t *tx);
|
||||
extern boolean_t vdev_indirect_should_condense(vdev_t *vd);
|
||||
extern void spa_condense_indirect_start_sync(vdev_t *vd, dmu_tx_t *tx);
|
||||
extern int vdev_obsolete_sm_object(vdev_t *vd);
|
||||
extern boolean_t vdev_obsolete_counts_are_precise(vdev_t *vd);
|
||||
extern int vdev_obsolete_sm_object(vdev_t *vd, uint64_t *sm_obj);
|
||||
extern int vdev_obsolete_counts_are_precise(vdev_t *vd, boolean_t *are_precise);
|
||||
|
||||
/*
|
||||
* Other miscellaneous functions
|
||||
*/
|
||||
int vdev_checkpoint_sm_object(vdev_t *vd);
|
||||
int vdev_checkpoint_sm_object(vdev_t *vd, uint64_t *sm_obj);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user