cvs commit: src/sys/kern subr_disk.c subr_diskslice.c src/sys/sys disklabel.h diskslice.h
Matthew Dillon
dillon at crater.dragonflybsd.org
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
Log:
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 fs.ei.tum.de>
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
http://www.dragonflybsd.org/cvsweb/src/sys/kern/subr_disk.c.diff?r1=1.34&r2=1.35&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/kern/subr_diskslice.c.diff?r1=1.41&r2=1.42&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/sys/disklabel.h.diff?r1=1.24&r2=1.25&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/sys/diskslice.h.diff?r1=1.17&r2=1.18&f=u
More information about the Commits
mailing list