Note: this is a work in progress, there are some minor code issues still left to address
This allows one to create a ZFS pool out of a directory tree. It's
intended to be used to build VM images so that users can take advantage
of the features of ZFS as a root filesystem.
The goals of the implementation are to:
- provide reproducible images
- not require any special privileges to create the image
- be reasonably fast
The implementation makes use of some ZFS code from the loader,
specifically a small nvlist implementation, fletcher4 and SHA
implementations for checksums, and zfsimpl.h. There is no dependency on
OpenZFS for now, so this will hopefully be easy to maintain.
We might want to update the WITHOUT_ZFS description also - it includes "libraries and user commands" now, but doesn't reference ZFS support in tools that are not exclusively ZFS.
Although now that I look at it, stand doesn't use MK_ZFS at all right now, but probably should? A separate issue in any case.