git: sys/vfs/hammer2: Fix volhdrno initialization bug
Tomohiro Kusumi
tkusumi at crater.dragonflybsd.org
Sat Jun 26 13:32:35 PDT 2021
commit 75d9730a687fcff22414364698e4ba023b466437
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date: Sun Jun 27 01:14:18 2021 +0900
sys/vfs/hammer2: Fix volhdrno initialization bug
While hammer2_init_volumes() returned correct root volume header,
hmp->volhdrno was always initialized with 0.
This resulted in always flushing volume header in 1->2->3->0->... order,
instead of starting off from where previous mount had written +1.
Summary of changes:
sys/vfs/hammer2/hammer2.h | 1 +
sys/vfs/hammer2/hammer2_ondisk.c | 2 ++
sys/vfs/hammer2/hammer2_vfsops.c | 4 ++--
3 files changed, 5 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/75d9730a687fcff22414364698e4ba023b466437
--
DragonFly BSD source repository
More information about the Commits
mailing list