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

Matthew Dillon dillon at
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 
  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
  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

More information about the Commits mailing list