aboutsummaryrefslogtreecommitdiffstats
path: root/include/libzfs.h
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2020-07-06 14:57:24 -0400
committerGitHub <[email protected]>2020-07-06 11:57:24 -0700
commitfb91f0367e91fb74a391f56d80fa3d3a9c6a2902 (patch)
tree1ca19c49ad65b9bd4db18faa1ab51e14b7f32697 /include/libzfs.h
parentcd32b4f5b79c97b293f7be3fe9ddfc9024f7d734 (diff)
Add zpool_nextboot, move zfs_jail to libzfs.h
FreeBSD has a zfsbootcfg command that wants zpool_nextboot in libzfs. Add the function to FreeBSD's libzfs_compat.c, and while here move the prototype for zfs_jail out of param.h in FreeBSD's SPL and into libzfs.h under an ifdef for FreeBSD, where the prototype for zpool_nextboot joins it. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes #10524
Diffstat (limited to 'include/libzfs.h')
-rw-r--r--include/libzfs.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/libzfs.h b/include/libzfs.h
index 873e8f304..a93f694a1 100644
--- a/include/libzfs.h
+++ b/include/libzfs.h
@@ -893,6 +893,20 @@ int zfs_smb_acl_rename(libzfs_handle_t *, char *, char *, char *, char *);
extern int zpool_enable_datasets(zpool_handle_t *, const char *, int);
extern int zpool_disable_datasets(zpool_handle_t *, boolean_t);
+#ifdef __FreeBSD__
+
+/*
+ * Attach/detach the given filesystem to/from the given jail.
+ */
+extern int zfs_jail(zfs_handle_t *zhp, int jailid, int attach);
+
+/*
+ * Set loader options for next boot.
+ */
+extern int zpool_nextboot(libzfs_handle_t *, uint64_t, uint64_t, const char *);
+
+#endif /* __FreeBSD__ */
+
#ifdef __cplusplus
}
#endif