Peter Eriksson submitted this patch, which adds support for a
database form of the exports file (as an alternative to the
exports(5) flat file). He has a patch for ZFS that generates
this database file format and it saves time when ZFS exports
a large number of file systems.
The current patch first looks for a file with the ".db" suffix and
uses that file instead of one without the ".db" suffix, if found.
(I am not 1000% sure if this semantic is appropriate vs requiring
the "exports.db" file name being an argument, but it avoids any
changes being needed for /etc/rc.d/mountd and avoids any
POLA, since behaviour remains the same unless "<file>.db" exists.
Although this is meant to be used with a patched version of ZFS,
the database can be generated manually via:
"makemap -f btree <file>.db < <file>"
A manual update will be done as a separate commit.