aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libzfs
diff options
context:
space:
mode:
authorAntonio Russo <[email protected]>2020-11-14 21:35:31 -0700
committerBrian Behlendorf <[email protected]>2020-11-17 09:18:52 -0800
commit14c34c3d49319a0fea937d54167602c43ff9d93f (patch)
tree7ca38e771ad64cb64fcc1817e01a0029fe4f7639 /lib/libzfs
parente6c59cd171bf141eae232db2f4c33ff79d5862c3 (diff)
Library ABI tracking with abigail
Provide two make targets: checkabi and storeabi. storeabi uses libabigail to generate a reference copy of the ABI for the public libraries. checkabi compares such a reference to the compiled version, failing if they are not compatible. No ABI is generated for libzpool.so, it is only used by ztest and zdb and not external consumers. Co-authored-by: Brian Behlendorf <[email protected]> Signed-off-by: Antonio Russo <[email protected]> Closes #11144
Diffstat (limited to 'lib/libzfs')
-rw-r--r--lib/libzfs/Makefile.am3
-rw-r--r--lib/libzfs/libzfs.suppr13
2 files changed, 16 insertions, 0 deletions
diff --git a/lib/libzfs/Makefile.am b/lib/libzfs/Makefile.am
index bfa5b2a1f..0b0d7b075 100644
--- a/lib/libzfs/Makefile.am
+++ b/lib/libzfs/Makefile.am
@@ -1,4 +1,5 @@
include $(top_srcdir)/config/Rules.am
+PHONY =
VPATH = \
$(top_srcdir)/module/icp \
@@ -13,6 +14,8 @@ pkgconfig_DATA = libzfs.pc
lib_LTLIBRARIES = libzfs.la
+include $(top_srcdir)/config/Abigail.am
+
USER_C = \
libzfs_changelist.c \
libzfs_config.c \
diff --git a/lib/libzfs/libzfs.suppr b/lib/libzfs/libzfs.suppr
new file mode 100644
index 000000000..d55b5b728
--- /dev/null
+++ b/lib/libzfs/libzfs.suppr
@@ -0,0 +1,13 @@
+[suppress_type]
+ name = FILE*
+
+[suppress_type]
+ type_kind = typedef
+ name = SHA256_CTX
+
+[suppress_type]
+ type_kind = typedef
+ name = SHA2_CTX
+
+[suppress_variable]
+ name = zfs_deleg_perm_tab