summaryrefslogtreecommitdiffstats
path: root/module/zfs/zil.c
diff options
context:
space:
mode:
authorMatthew Ahrens <[email protected]>2014-09-07 17:37:25 +0200
committerBrian Behlendorf <[email protected]>2014-09-18 15:04:59 -0700
commit6d9036f35049f0917748c89114bac58a5029e989 (patch)
tree208fb8416363226e240eaf97b89eef243e46a15c /module/zfs/zil.c
parent71bd0645554d8bd94bdadaf270ab67f629ad9fa0 (diff)
Illumos 5140 - message about "%recv could not be opened" is printed when booting after crash
Reviewed by: Christopher Siden <[email protected]> Reviewed by: George Wilson <[email protected]> Reviewed by: Max Grossman <[email protected]> Reviewed by: Richard Elling <[email protected]> Approved by: Dan McDonald <[email protected]> References: https://www.illumos.org/projects/illumos-gate//issues/5140 https://github.com/illumos/illumos-gate/commit/2243853 Ported by: Turbo Fredriksson <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #2676
Diffstat (limited to 'module/zfs/zil.c')
-rw-r--r--module/zfs/zil.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/module/zfs/zil.c b/module/zfs/zil.c
index e625bb996..c91bb59fc 100644
--- a/module/zfs/zil.c
+++ b/module/zfs/zil.c
@@ -667,7 +667,15 @@ zil_claim(const char *osname, void *txarg)
error = dmu_objset_own(osname, DMU_OST_ANY, B_FALSE, FTAG, &os);
if (error != 0) {
- cmn_err(CE_WARN, "can't open objset for %s", osname);
+ /*
+ * EBUSY indicates that the objset is inconsistent, in which
+ * case it can not have a ZIL.
+ */
+ if (error != EBUSY) {
+ cmn_err(CE_WARN, "can't open objset for %s, error %u",
+ osname, error);
+ }
+
return (0);
}