git: sys/vfs/hammer: Fix zone/iotype/iostring conversion

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Oct 27 02:45:33 PDT 2016


commit 3ff3ba13831b752b6e4d93aa9366ef7b417129c0
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Thu Oct 27 14:01:07 2016 +0900

    sys/vfs/hammer: Fix zone/iotype/iostring conversion
    
    This isn't explcitly mentioned in documentations/comments/etc,
    but HAMMER_STRUCTURE_META_BUFFER is mapped to zone-{2,4,8,9}.
    Avoid using default: case when we know that.
    
    hammer_io_read() needs a case for zone-2 with "buffer" string.
    This avoids using a wrong message "meta?" for zone-2.

Summary of changes:
 sys/vfs/hammer/hammer_io.c     | 16 +++++++++++-----
 sys/vfs/hammer/hammer_ondisk.c | 10 +++++++++-
 2 files changed, 20 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3ff3ba13831b752b6e4d93aa9366ef7b417129c0


-- 
DragonFly BSD source repository


More information about the Commits mailing list