sbin/hammer: Make hammer checkmap check zone
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 28 Mar 2015 19:34:09 +0000 (04:34 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 28 Mar 2015 22:17:01 +0000 (07:17 +0900)
commit901e04c726658ce6ec198aa56d0b2c5b9255fc72
treeff6bd2a6a99fe017c4fdcfe46d0537ed7fd05170
parent6779846fd293853d6a7cb52a17d0cfe65a0b4efe
sbin/hammer: Make hammer checkmap check zone

- Make use of unused layer2 track field track2->zone to check
  layer2 entries' zone #.

- This ensures that all nodes/data/metadata are allocated from
  a zone that is supposed to be used. If HAMMER happens to
  allocate them from a zone that is not intended to be used for
  that chunk of data, then this command will report inconsistency.
sbin/hammer/cmd_blockmap.c
sys/vfs/hammer/hammer_ondisk.c