git: sys/vfs/hammer: Check ronly when overwriting volume header

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sat Aug 22 10:53:20 PDT 2015


commit 0b818f293c44a0b45af4fa6aaae7a6b80baafa3d
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Tue Aug 18 19:11:04 2015 +0900

    sys/vfs/hammer: Check ronly when overwriting volume header
    
    Check readonly mount before overwriting volume header
    with non-NULL data on load/unload.
    
    (hammer volume-add|del ioctls which are the only cases
    with non-NULL data do have readonly mount check before
    load/unload, so there isn't any issue without ronly==0
    but the check should be done here too)

Summary of changes:
 sys/vfs/hammer/hammer_ondisk.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0b818f293c44a0b45af4fa6aaae7a6b80baafa3d


-- 
DragonFly BSD source repository



More information about the Commits mailing list