git: kernel - Fix bug when running swapon a gpt slice

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Oct 11 12:46:55 PDT 2013


commit 54cf95586e9d23ffaaa0b664daf4099f129fa1a8
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Oct 11 12:44:03 2013 -0700

    kernel - Fix bug when running swapon a gpt slice
    
    * diskpsize() and related API functions to obtain the number of blocks
      in a disk specification was punting if there was no dragonfly disklabel.
      This path was being specifically used by swapon.
    
    * Do not require a dragonfly disklabel when the whole-slice partition is
      specified (i.e. /dev/daXsY with no a...z suffix).
    
    * Swapon now works on gpt swap slices.
    
    Reported-by: julianp

Summary of changes:
 sys/kern/subr_diskslice.c | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/54cf95586e9d23ffaaa0b664daf4099f129fa1a8


-- 
DragonFly BSD source repository



More information about the Commits mailing list