git: sbin/newfs_hammer: Check upper limit of volume size

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Tue Apr 12 03:15:03 PDT 2016


commit 10b51211c080dd40baff9939a3b0e7ad9ba6d6b6
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Tue Apr 12 14:23:37 2016 +0900

    sbin/newfs_hammer: Check upper limit of volume size
    
    In theory, a volume whose (vol_buf_end - vol_buf_beg) exceeds 52 bits is invalid.
    Also do the same check (assertion) on hammer volume-add|del.

Summary of changes:
 sbin/newfs_hammer/newfs_hammer.c | 4 ++++
 sys/vfs/hammer/hammer_volume.c   | 3 +++
 2 files changed, 7 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/10b51211c080dd40baff9939a3b0e7ad9ba6d6b6


-- 
DragonFly BSD source repository



More information about the Commits mailing list