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

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Oct 11 12:47:58 PDT 2013


commit 506ebe2465835bef3eb21b1af8fd0b278fbe32b5
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/506ebe2465835bef3eb21b1af8fd0b278fbe32b5


-- 
DragonFly BSD source repository


More information about the Commits mailing list