MFC r271534: MFV r271517:

In zil_claim, don't issue warning if we get EBUSY (inconsistent) when
opening an objset, instead, ignore it silently.

Illumos issue:

    5140 message about "%recv could not be opened" is printed when
         booting after crash

Approved by:	re (gjb)
This commit is contained in:
delphij 2014-09-25 21:07:30 +00:00
parent add3b90199
commit 93af829dad

View File

@ -647,7 +647,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);
}