diff options
author | Matthew Ahrens <[email protected]> | 2015-04-26 15:24:34 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-05-04 10:45:42 -0700 |
commit | 36c6ffb6b6a4a77e7133b0f84a5aeccf0aa25499 (patch) | |
tree | 6a152547fdff9f4e6bc982e75596158e665cedb9 /module/zfs | |
parent | 50f9ea01499be508918e33923e004bf5dcf390e3 (diff) |
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 <[email protected]>
Reviewed by: Paul Dagnelie <[email protected]>
Reviewed by: Simon Klinkert <[email protected]>
Reviewed by: Will Andrews <[email protected]>
Approved by: Gordon Ross <[email protected]>
References:
https://www.illumos.org/issues/5808
https://github.com/illumos/illumos-gate/commit/23367a2f
Ported-by: DHE <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #3369
Diffstat (limited to 'module/zfs')
-rw-r--r-- | module/zfs/spa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/spa.c b/module/zfs/spa.c index 53aa05d01..3312c301c 100644 --- a/module/zfs/spa.c +++ b/module/zfs/spa.c @@ -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) 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)); } |