mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 11:18:52 +03:00
libzfs: convert to -fvisibility=hidden
Also mark all printf-like funxions in libzfs_impl.h as printf-like and add --no-show-locs to storeabi, in hopes diffs will make more sense in future This removes these symbols from libzfs: D nfs_only T SHA256Init T SHA2Final T SHA2Init T SHA2Update T SHA384Init T SHA512Init D share_all_proto D smb_only T zfs_is_shared_proto W zpool_mount_datasets W zpool_unmount_datasets Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Matthew Ahrens <mahrens@delphix.com> Reviewed-by: John Kennedy <john.kennedy@delphix.com> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12048
This commit is contained in:
+16
-12
@@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#ifndef _ZFS_NAMECHECK_H
|
||||
#define _ZFS_NAMECHECK_H
|
||||
#define _ZFS_NAMECHECK_H extern __attribute__((visibility("default")))
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -51,18 +51,22 @@ typedef enum {
|
||||
|
||||
#define ZFS_PERMSET_MAXLEN 64
|
||||
|
||||
extern int zfs_max_dataset_nesting;
|
||||
_ZFS_NAMECHECK_H int zfs_max_dataset_nesting;
|
||||
|
||||
int get_dataset_depth(const char *);
|
||||
int pool_namecheck(const char *, namecheck_err_t *, char *);
|
||||
int entity_namecheck(const char *, namecheck_err_t *, char *);
|
||||
int dataset_namecheck(const char *, namecheck_err_t *, char *);
|
||||
int snapshot_namecheck(const char *, namecheck_err_t *, char *);
|
||||
int bookmark_namecheck(const char *, namecheck_err_t *, char *);
|
||||
int dataset_nestcheck(const char *);
|
||||
int mountpoint_namecheck(const char *, namecheck_err_t *);
|
||||
int zfs_component_namecheck(const char *, namecheck_err_t *, char *);
|
||||
int permset_namecheck(const char *, namecheck_err_t *, char *);
|
||||
_ZFS_NAMECHECK_H int get_dataset_depth(const char *);
|
||||
_ZFS_NAMECHECK_H int pool_namecheck(const char *, namecheck_err_t *, char *);
|
||||
_ZFS_NAMECHECK_H int entity_namecheck(const char *, namecheck_err_t *, char *);
|
||||
_ZFS_NAMECHECK_H int dataset_namecheck(const char *, namecheck_err_t *, char *);
|
||||
_ZFS_NAMECHECK_H int snapshot_namecheck(const char *, namecheck_err_t *,
|
||||
char *);
|
||||
_ZFS_NAMECHECK_H int bookmark_namecheck(const char *, namecheck_err_t *,
|
||||
char *);
|
||||
_ZFS_NAMECHECK_H int dataset_nestcheck(const char *);
|
||||
_ZFS_NAMECHECK_H int mountpoint_namecheck(const char *, namecheck_err_t *);
|
||||
_ZFS_NAMECHECK_H int zfs_component_namecheck(const char *, namecheck_err_t *,
|
||||
char *);
|
||||
_ZFS_NAMECHECK_H int permset_namecheck(const char *, namecheck_err_t *,
|
||||
char *);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user