mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
libzfs: expose zfs_mount_delegation_check
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12116
This commit is contained in:
parent
45516b4a0a
commit
c4e5a07fd0
@ -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_mount_at(zfs_handle_t *, const char *, int, const char *);
|
||||||
extern int zfs_unmount(zfs_handle_t *, const char *, int);
|
extern int zfs_unmount(zfs_handle_t *, const char *, int);
|
||||||
extern int zfs_unmountall(zfs_handle_t *, int);
|
extern int zfs_unmountall(zfs_handle_t *, int);
|
||||||
|
extern int zfs_mount_delegation_check(void);
|
||||||
|
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
extern int zfs_parse_mount_options(char *mntopts, unsigned long *mntflags,
|
extern int zfs_parse_mount_options(char *mntopts, unsigned long *mntflags,
|
||||||
|
@ -30,7 +30,6 @@
|
|||||||
#define _LIBZFS_IMPL_H
|
#define _LIBZFS_IMPL_H
|
||||||
|
|
||||||
#include <sys/fs/zfs.h>
|
#include <sys/fs/zfs.h>
|
||||||
#include <sys/spa.h>
|
|
||||||
#include <sys/nvpair.h>
|
#include <sys/nvpair.h>
|
||||||
#include <sys/dmu.h>
|
#include <sys/dmu.h>
|
||||||
#include <sys/zfs_ioctl.h>
|
#include <sys/zfs_ioctl.h>
|
||||||
@ -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,
|
extern int do_mount(zfs_handle_t *zhp, const char *mntpt, char *opts,
|
||||||
int flags);
|
int flags);
|
||||||
extern int do_unmount(const char *mntpt, 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 zfs_share_proto(zfs_handle_t *zhp, zfs_share_proto_t *proto);
|
||||||
extern int unshare_one(libzfs_handle_t *hdl, const char *name,
|
extern int unshare_one(libzfs_handle_t *hdl, const char *name,
|
||||||
const char *mountpoint, zfs_share_proto_t proto);
|
const char *mountpoint, zfs_share_proto_t proto);
|
||||||
|
Loading…
Reference in New Issue
Block a user