From 6d9036f35049f0917748c89114bac58a5029e989 Mon Sep 17 00:00:00 2001 From: Matthew Ahrens Date: Sun, 7 Sep 2014 17:37:25 +0200 Subject: [PATCH] Illumos 5140 - message about "%recv could not be opened" is printed when booting after crash Reviewed by: Christopher Siden Reviewed by: George Wilson Reviewed by: Max Grossman Reviewed by: Richard Elling Approved by: Dan McDonald References: https://www.illumos.org/projects/illumos-gate//issues/5140 https://github.com/illumos/illumos-gate/commit/2243853 Ported by: Turbo Fredriksson Signed-off-by: Brian Behlendorf Closes #2676 --- module/zfs/zil.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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); }