git: subr_disk - Implement create_named & bounds_check

Alex Hornung alexh at crater.dragonflybsd.org
Sat Jun 26 18:13:42 PDT 2010


commit c6ef65eafb251f9c905af44fd734cf8201087922
Author: Alex Hornung <ahornung at gmail.com>
Date:   Sun Jun 13 09:41:56 2010 +0100

    subr_disk - Implement create_named & bounds_check
    
    * Implement a disk_create_named to allow disks to be arbitrarily named,
      not necessarily <driver name><unit>.
    
    * Implement a bounds_check_with_mediasize, which bound-checks a bio
      against a given media size and sector size.

Summary of changes:
 sys/kern/subr_disk.c |   62 +++++++++++++++++++++++++++++++++++++++++--------
 sys/sys/disk.h       |    3 ++
 2 files changed, 55 insertions(+), 10 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c6ef65eafb251f9c905af44fd734cf8201087922


-- 
DragonFly BSD source repository





More information about the Commits mailing list