From 92fe0d1ab6ca7ca8acb56fc355620d6871c7a1a5 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Sat, 13 Sep 2014 15:31:37 +0000 Subject: [PATCH] 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 Author: Matthew Ahrens illumos/illumos-gate@22438533bcc131ecebd4c16c699c35e91d321b76 --- uts/common/fs/zfs/zil.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/uts/common/fs/zfs/zil.c b/uts/common/fs/zfs/zil.c index a5fe3fb00f8..6377285fe2a 100644 --- a/uts/common/fs/zfs/zil.c +++ b/uts/common/fs/zfs/zil.c @@ -635,7 +635,14 @@ 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); }