git: HAMMER VFS - Fix two minor bugs.

Matthew Dillon dillon at
Tue Apr 5 21:12:34 PDT 2011

commit dfec479fbd286f4df35365df97174521a832ddc1
Author: Matthew Dillon <dillon at>
Date:   Tue Apr 5 21:09:09 2011 -0700

    HAMMER VFS - Fix two minor bugs.
    * When downgrading a volume to read-only due to a critical HAMMER error
      also properly downgrade the VOP_OPEN/VOP_CLOSE state so the opencount
      and writecount match up.
      This should fix issues disconnecting the related disk device after
      umounting a HAMMER partition which has had a critical error.
    * When adding or removing a volume to an existing HAMMER mount flush
      disk buffers before calling VOP_CLOSE() instead of after.

Summary of changes:
 sys/vfs/hammer/hammer_vfsops.c |    2 ++
 sys/vfs/hammer/hammer_volume.c |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list