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

Matthew Dillon dillon at
Wed Jun 13 13:59:08 PDT 2007

dillon      2007/06/13 13:58:38 PDT

DragonFly src repository

  Modified files:
    sys/kern             subr_disk.c subr_diskslice.c 
    sys/sys              disklabel.h diskslice.h 
  Expand the diskslice->ds_openmask from 8 bits to 256 bits to cover all
  possible partitions.  Partitions from 'i' on, and the whole-disk partition,
  were not being properly tracked, resulting in multiple device opens and
  device closes to the underlying device.
  In particular, this caused USB memory sticks to connect to the CAM driver
  with ever-increasing DA#n unit numbers because CAMs reference counting got
  seriously corrupted.
  Reported-by: "Simon 'corecode' Schubert" <corecode at>
  Revision  Changes    Path
  1.35      +16 -9     src/sys/kern/subr_disk.c
  1.42      +28 -23    src/sys/kern/subr_diskslice.c
  1.25      +1 -1      src/sys/sys/disklabel.h
  1.18      +67 -5     src/sys/sys/diskslice.h

More information about the Commits mailing list