aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys/zap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sys/zap.h')
-rw-r--r--include/sys/zap.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/sys/zap.h b/include/sys/zap.h
index 0027f7c51..ec37c3447 100644
--- a/include/sys/zap.h
+++ b/include/sys/zap.h
@@ -376,9 +376,19 @@ typedef struct {
boolean_t za_normalization_conflict;
uint64_t za_num_integers;
uint64_t za_first_integer; /* no sign extension for <8byte ints */
- char za_name[ZAP_MAXNAMELEN];
+ uint32_t za_name_len;
+ char za_name[];
} zap_attribute_t;
+void zap_init(void);
+void zap_fini(void);
+
+/*
+ * Alloc and free zap_attribute_t.
+ */
+zap_attribute_t *zap_attribute_alloc(void);
+void zap_attribute_free(zap_attribute_t *attrp);
+
/*
* The interface for listing all the attributes of a zapobj can be
* thought of as cursor moving down a list of the attributes one by