OpenZFS restructuring - zfs_ioctl

Refactor the zfs ioctls in to platform dependent and independent bits.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Sean Eric Fagan <sef@ixsystems.com>
Signed-off-by: Matthew Macy <mmacy@FreeBSD.org>
Signed-off-by: Ryan Moeller <ryan@ixsystems.com>
Closes #9301
This commit is contained in:
Matthew Macy
2019-09-27 10:46:28 -07:00
committed by Brian Behlendorf
parent 3768db24ab
commit 7bb0c29468
9 changed files with 511 additions and 337 deletions
@@ -272,13 +272,13 @@ test_pool_sync(const char *pool)
static void
test_pool_reopen(const char *pool)
{
nvlist_t *required = fnvlist_alloc();
nvlist_t *optional = fnvlist_alloc();
fnvlist_add_boolean_value(required, "scrub_restart", B_FALSE);
fnvlist_add_boolean_value(optional, "scrub_restart", B_FALSE);
IOC_INPUT_TEST(ZFS_IOC_POOL_REOPEN, pool, required, NULL, 0);
IOC_INPUT_TEST(ZFS_IOC_POOL_REOPEN, pool, NULL, optional, 0);
nvlist_free(required);
nvlist_free(optional);
}
static void