build: package zfs.so (the zfs utility) in bootfs

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
mkfs: Add stub mkfs()

For the moment, it only creates a zpool, not a filesystem.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
paths.h: fix _PATH_MNTTAB

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
zfs: wire up some exporting functionality
mkfs: create /etc/mnttab

zfs utilities want /etc/mnttab, let them have it.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
mkfs: create a filesystem

Create a file system on top of the pool.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
bsd: allow mnttab.h to be included from C++ code

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
bsd: reconcile MS_RDONLY definition with api/mount.h

Make the two definitions exactly equal so the compiler does not complain.

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

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
zfs: port unmounting support

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
build: include the entirety of boost libraries in the link

This allows using the boost libraries in shared objects.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
loader: add nomount option

Useful when a filesystem is not yet available.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
mkfs: cpio stream parser

Implement a parser for the cpio "newc" format.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
mkfs: stream in file data

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
mkfs: sync after adding files

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
build: switch to osv-supplied mkfs rather than zfs-fuse

This drops the superuser requirement from the build process, and reduces
the build prerequisite list.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
build: clean up mkzfs.py

Drop sudo and global /zfs temporary directory.

Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
Merge branch 'mkfs'

Switch osv to built-in mkfs rather than zfs-fuse.

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