Fill nvpair implementation with tons of copy-pasted code.
Implement reading pools and datasets configuration and layout.