Upstream: zdb inode mapping
authorJorgen Lundman <lundman@lundman.net>
Wed, 8 Sep 2021 20:56:04 +0000 (05:56 +0900)
committerGitHub <noreply@github.com>
Wed, 8 Sep 2021 20:56:04 +0000 (13:56 -0700)
commit49d8a99a4d6579a61b04c4b05f732fab26b09d30
treeb813bce8ae9e9f67b98ca58779efd1310e112019
parentc634320e51df32095bb0ed7b2a74089e24a850c7
Upstream: zdb inode mapping

Unfortunately macOS reserves inode ID numbers 0-15, and we can
not used them. In macOS port we simply map them really high IDs.

Normally this is hidden inside the _os implementation, but this is
the one place in the common source files.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Jorgen Lundman <lundman@lundman.net>
Closes #12530
cmd/zdb/zdb.c