From 22438533bcc131ecebd4c16c699c35e91d321b76 Mon Sep 17 00:00:00 2001 From: Matthew Ahrens Date: Wed, 10 Sep 2014 23:05:49 -0800 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 --- usr/src/uts/common/fs/zfs/zil.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/usr/src/uts/common/fs/zfs/zil.c b/usr/src/uts/common/fs/zfs/zil.c index a5fe3fb00f..6377285fe2 100644 --- a/usr/src/uts/common/fs/zfs/zil.c +++ b/usr/src/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); } -- 2.11.4.GIT