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

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Jun 17 02:57:32 PDT 2007


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





More information about the Commits mailing list