DragonFly commits List (threaded) for 2007-06
DragonFly BSD
DragonFly commits List (threaded) for 2007-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/sys diskslice.h src/sys/kern subr_diskgpt.c subr_diskslice.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 17 Jun 2007 02:56:19 -0700 (PDT)

dillon      2007/06/17 02:56:19 PDT

DragonFly src repository

  Modified files:
    sys/sys              diskslice.h 
    sys/kern             subr_diskgpt.c subr_diskslice.c 
  Log:
  Fix an overflow in the GPT code, I wasn't allocating enough slice structures.
  Fix the openmask array declaration, it was declaring too-large an array.
  
  Disallow GPT partitions with invalid spans.
  
  When calculating a virgin disklabel take into account the possibility of
  absurdly small GPT or MBR slices that would cause the calculation of
  disklabel->d_ncylinders to result in 0.  Reduce the number of heads and
  the number of sectors per track until a reasonable cylinder count is
  achieved.
  
  Revision  Changes    Path
  1.20      +1 -1      src/sys/sys/diskslice.h
  1.2       +9 -5      src/sys/kern/subr_diskgpt.c
  1.44      +20 -6     src/sys/kern/subr_diskslice.c


http://www.dragonflybsd.org/cvsweb/src/sys/sys/diskslice.h.diff?r1=1.19&r2=1.20&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/kern/subr_diskgpt.c.diff?r1=1.1&r2=1.2&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/kern/subr_diskslice.c.diff?r1=1.43&r2=1.44&f=u



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]