> @@ -1558,8 +1558,32 @@ dump_deadlist(dsl_deadlist_t *dl)
> static avl_tree_t idx_tree;
> static avl_tree_t domain_tree;
> static boolean_t fuid_table_loaded;
> -static boolean_t sa_loaded;
> -sa_attr_type_t *sa_attr_table;
> +sa_attr_type_t *sa_attr_table = NULL;
> +
> +static int
> +check_sa_attr_table(objset_t *os)
> +{
> + uint64_t sa_attrs = 0;
> + uint64_t version;
> + int error;
> +
> + if (sa_attr_table != NULL)
> + return (0);
> +
> + VERIFY(zap_lookup(os, MASTER_NODE_OBJ, ZPL_VERSION_STR,
how about using VERIFY0(zap_lookup(...))
---
Reply to this email directly or view it on GitHub:
https://github.com/openzfs/openzfs/pull/29/files#r43468447
_______________________________________________
developer mailing list
developer@open-zfs.org
http://lists.open-zfs.org/mailman/listinfo/developer