From c4e5a07fd050eb62257e481d3266d35a0df2452f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Sat, 15 May 2021 12:02:32 +0200 Subject: [PATCH] libzfs: expose zfs_mount_delegation_check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Brian Behlendorf Reviewed-by: Ryan Moeller Signed-off-by: Ahelenia ZiemiaƄska Closes #12116 --- include/libzfs.h | 1 + include/libzfs_impl.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/libzfs.h b/include/libzfs.h index eeb4daae7..7ad44bc59 100644 --- a/include/libzfs.h +++ b/include/libzfs.h @@ -826,6 +826,7 @@ extern int zfs_mount(zfs_handle_t *, const char *, int); extern int zfs_mount_at(zfs_handle_t *, const char *, int, const char *); extern int zfs_unmount(zfs_handle_t *, const char *, int); extern int zfs_unmountall(zfs_handle_t *, int); +extern int zfs_mount_delegation_check(void); #if defined(__linux__) extern int zfs_parse_mount_options(char *mntopts, unsigned long *mntflags, diff --git a/include/libzfs_impl.h b/include/libzfs_impl.h index a2389daea..de6730408 100644 --- a/include/libzfs_impl.h +++ b/include/libzfs_impl.h @@ -30,7 +30,6 @@ #define _LIBZFS_IMPL_H #include -#include #include #include #include @@ -243,7 +242,6 @@ extern proto_table_t proto_table[PROTO_END]; extern int do_mount(zfs_handle_t *zhp, const char *mntpt, char *opts, int flags); extern int do_unmount(const char *mntpt, int flags); -extern int zfs_mount_delegation_check(void); extern int zfs_share_proto(zfs_handle_t *zhp, zfs_share_proto_t *proto); extern int unshare_one(libzfs_handle_t *hdl, const char *name, const char *mountpoint, zfs_share_proto_t proto);