sys/vfs/hammer: Check root voume# is 0 on mount(2)
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 30 Sep 2017 11:17:32 +0000 (14:17 +0300)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 30 Sep 2017 17:55:55 +0000 (20:55 +0300)
commited84682cd619911937e48277b48ba140efca43ea
tree2a85fa9959bcb7b4a608d94556ce0e1a8851e153
parentd04bb327d85bc66ac64f2bda8b2eaf482d07beb6
sys/vfs/hammer: Check root voume# is 0 on mount(2)

We could check this in addition to the existing conditional to
know the volume is the root volume. /sbin/hammer and /sbin/mount_hammer
do this, so why not.

If failed here, the volume which has just been inserted to the rbtree
(and other volumes already inserted) are going to be removed by
hammer_free_hmp().
sys/vfs/hammer/hammer_ondisk.c