git: sys/vfs/hammer: Check root voume# is 0 on mount(2)
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Sat Sep 30 11:37:02 PDT 2017
commit ed84682cd619911937e48277b48ba140efca43ea
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date: Sat Sep 30 14:17:32 2017 +0300
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().
Summary of changes:
sys/vfs/hammer/hammer_ondisk.c | 6 ++++++
1 file changed, 6 insertions(+)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ed84682cd619911937e48277b48ba140efca43ea
--
DragonFly BSD source repository
More information about the Commits
mailing list