]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add zpool_nextboot, move zfs_jail to libzfs.h
authorRyan Moeller <ryan@iXsystems.com>
Mon, 6 Jul 2020 18:57:24 +0000 (14:57 -0400)
committerGitHub <noreply@github.com>
Mon, 6 Jul 2020 18:57:24 +0000 (11:57 -0700)
commitfb91f0367e91fb74a391f56d80fa3d3a9c6a2902
tree1ca19c49ad65b9bd4db18faa1ab51e14b7f32697
parentcd32b4f5b79c97b293f7be3fe9ddfc9024f7d734
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 <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #10524
include/libzfs.h
lib/libspl/include/os/freebsd/sys/param.h
lib/libzfs/os/freebsd/libzfs_compat.c