libzfs: add missing includes

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
netport: add some more module stubs

Needed by libzfs.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
mount: add MS_FORCE define

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
param.h: include <limits.h>

Fixed MAXPATHLEN

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
paths: define _PATH_DEVZERO

Needed by MNTTAB.
build: wire up libzfs

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
netport: allow writing to 'physmem'

Strangely, it still works even though it's not initialized.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
cpuset: add missing #include

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
uio: define UIO_SYSSPACE

Needed by libzpool.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
build: build libzpool

Make it part of libzfs, we don't need it separately anyway.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
libzpool: build adjustments

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
devfs: move debugging macros to .c file

Avoid name conflicts.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
zfs: prepare zfs_ioctl for inclusion in the build

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
bsd: implement CTASSERT()

Wanted by zfs_ioctl.c.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
zfs: disable jail ioctls

Not supported under osv.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
zfs: add osv_zfs_ioctl()

This is a shortcut through various kernel layers to avoid complication,
intended to be called from the various zfs utilities.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
vnode: define VATTR_NULL()

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
bsd: add missing include to <sys/malloc.h>

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
build: wire up zpool-cmd build

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
zfs: reduce the size of the zfs ioctl command buffer

MAXPATHLEN on osv is larger than on bsd, leading to the zfs ioctl command
buffer overflowing the maximum allowable size.

Reduce the buffer size to avoid a compile time assert failure.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>