]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Illumos 5140 - message about "%recv could not be opened" is printed when booting...
authorMatthew Ahrens <mahrens@delphix.com>
Sun, 7 Sep 2014 15:37:25 +0000 (17:37 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 18 Sep 2014 22:04:59 +0000 (15:04 -0700)
Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Max Grossman <max.grossman@delphix.com>
Reviewed by: Richard Elling <richard.elling@gmail.com>
Approved by: Dan McDonald <danmcd@omniti.com>

References:
  https://www.illumos.org/projects/illumos-gate//issues/5140
  https://github.com/illumos/illumos-gate/commit/2243853

Ported by: Turbo Fredriksson <turbo@bayour.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2676

module/zfs/zil.c

index e625bb9967d5fc7f64362a08705090f2ad339d93..c91bb59fc6dda39e8176d41942485e4410d79466 100644 (file)
@@ -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);
        }