5808 spa_check_logs is not necessary on readonly pools
Reviewed by: George Wilson <george@delphix.com> Reviewed by: Paul Dagnelie <paul.dagnelie@delphix.com> Reviewed by: Simon Klinkert <simon.klinkert@gmail.com> Reviewed by: Will Andrews <will@freebsd.org> Approved by: Gordon Ross <gwr@nexenta.com> Author: Matthew Ahrens <mahrens@delphix.com> illumos/illumos-gate@23367a2f2c
This commit is contained in:
parent
aeda445d51
commit
b00cfbb2bb
@ -2687,7 +2687,7 @@ spa_load_impl(spa_t *spa, uint64_t pool_guid, nvlist_t *config,
|
||||
if (rvd->vdev_state <= VDEV_STATE_CANT_OPEN)
|
||||
return (SET_ERROR(ENXIO));
|
||||
|
||||
if (spa_check_logs(spa)) {
|
||||
if (spa_writeable(spa) && spa_check_logs(spa)) {
|
||||
*ereport = FM_EREPORT_ZFS_LOG_REPLAY;
|
||||
return (spa_vdev_err(rvd, VDEV_AUX_BAD_LOG, ENXIO));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user