]> git.proxmox.com Git - mirror_zfs.git/blobdiff - lib/libzfs/libzfs_status.c
Encryption Stability and On-Disk Format Fixes
[mirror_zfs.git] / lib / libzfs / libzfs_status.c
index 320783523b7dadbf3179cdb1bf32e3b47302ef80..f900ac723107fb40fdfd66e54ff835977a4f8f73 100644 (file)
@@ -351,6 +351,15 @@ check_status(nvlist_t *config, boolean_t isimport, zpool_errata_t *erratap)
        if (find_vdev_problem(nvroot, vdev_removed))
                return (ZPOOL_STATUS_REMOVED_DEV);
 
+       /*
+        * Informational errata available.
+        */
+       (void) nvlist_lookup_uint64(config, ZPOOL_CONFIG_ERRATA, &errata);
+       if (errata) {
+               *erratap = errata;
+               return (ZPOOL_STATUS_ERRATA);
+       }
+
        /*
         * Outdated, but usable, version
         */
@@ -382,15 +391,6 @@ check_status(nvlist_t *config, boolean_t isimport, zpool_errata_t *erratap)
                }
        }
 
-       /*
-        * Informational errata available.
-        */
-       (void) nvlist_lookup_uint64(config, ZPOOL_CONFIG_ERRATA, &errata);
-       if (errata) {
-               *erratap = errata;
-               return (ZPOOL_STATUS_ERRATA);
-       }
-
        return (ZPOOL_STATUS_OK);
 }