mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 11:29:36 +03:00
Illumos 5808 - spa_check_logs is not necessary on readonly pools
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> References: https://www.illumos.org/issues/5808 https://github.com/illumos/illumos-gate/commit/23367a2f Ported-by: DHE <git@dehacked.net> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #3369
This commit is contained in:
parent
50f9ea0149
commit
36c6ffb6b6
@ -2714,7 +2714,7 @@ spa_load_impl(spa_t *spa, uint64_t pool_guid, nvlist_t *config,
|
|||||||
if (rvd->vdev_state <= VDEV_STATE_CANT_OPEN)
|
if (rvd->vdev_state <= VDEV_STATE_CANT_OPEN)
|
||||||
return (SET_ERROR(ENXIO));
|
return (SET_ERROR(ENXIO));
|
||||||
|
|
||||||
if (spa_check_logs(spa)) {
|
if (spa_writeable(spa) && spa_check_logs(spa)) {
|
||||||
*ereport = FM_EREPORT_ZFS_LOG_REPLAY;
|
*ereport = FM_EREPORT_ZFS_LOG_REPLAY;
|
||||||
return (spa_vdev_err(rvd, VDEV_AUX_BAD_LOG, ENXIO));
|
return (spa_vdev_err(rvd, VDEV_AUX_BAD_LOG, ENXIO));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user