mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
OpenZFS restructuring - libzfs
Factor Linux specific functionality out of libzfs. Reviewed-by: Allan Jude <allanjude@freebsd.org> Reviewed-by: Jorgen Lundman <lundman@lundman.net> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matthew Macy <mmacy@FreeBSD.org> Closes #9377
This commit is contained in:
committed by
Brian Behlendorf
parent
7c5eff9400
commit
73cdcc6323
@@ -205,6 +205,52 @@ extern int zfs_parse_options(char *, zfs_share_proto_t);
|
||||
extern int zfs_unshare_proto(zfs_handle_t *,
|
||||
const char *, zfs_share_proto_t *);
|
||||
|
||||
typedef struct {
|
||||
zfs_prop_t p_prop;
|
||||
char *p_name;
|
||||
int p_share_err;
|
||||
int p_unshare_err;
|
||||
} proto_table_t;
|
||||
|
||||
typedef struct differ_info {
|
||||
zfs_handle_t *zhp;
|
||||
char *fromsnap;
|
||||
char *frommnt;
|
||||
char *tosnap;
|
||||
char *tomnt;
|
||||
char *ds;
|
||||
char *dsmnt;
|
||||
char *tmpsnap;
|
||||
char errbuf[1024];
|
||||
boolean_t isclone;
|
||||
boolean_t scripted;
|
||||
boolean_t classify;
|
||||
boolean_t timestamped;
|
||||
uint64_t shares;
|
||||
int zerr;
|
||||
int cleanupfd;
|
||||
int outputfd;
|
||||
int datafd;
|
||||
} differ_info_t;
|
||||
|
||||
extern proto_table_t proto_table[PROTO_END];
|
||||
|
||||
extern int do_mount(const char *src, const char *mntpt, char *opts, int flags);
|
||||
extern int do_unmount(const char *mntpt, int flags);
|
||||
extern int zfs_can_user_mount(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);
|
||||
extern boolean_t zfs_is_mountable(zfs_handle_t *zhp, char *buf, size_t buflen,
|
||||
zprop_source_t *source, int flags);
|
||||
extern zfs_share_type_t is_shared_impl(libzfs_handle_t *hdl,
|
||||
const char *mountpoint, zfs_share_proto_t proto);
|
||||
extern int libzfs_load_module(void);
|
||||
extern int zpool_relabel_disk(libzfs_handle_t *hdl, const char *path,
|
||||
const char *msg);
|
||||
extern int find_shares_object(differ_info_t *di);
|
||||
extern void libzfs_set_pipe_max(int infd);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user