2009/5/10 Nick Guenther <[email protected]>:
> I had a similar problem where trying to write anything with my CD
> drive, and sometimes even just reading it, would lock. I saw something
> go by on here that hinted it was because the drive was a fancy
> blu-ray/duallayer/hddvd-capable drive but that's as far as I cared to
> dig.
There's this patch krw's cooked up. It fixes the problem for him and
me, it might also work for you.
Index: udf_subr.c
===================================================================
RCS file: /cvs/src/sys/isofs/udf/udf_subr.c,v
retrieving revision 1.18
diff -u -p -r1.18 udf_subr.c
--- udf_subr.c 23 Jul 2008 16:24:43 -0000 1.18
+++ udf_subr.c 14 May 2009 01:40:41 -0000
@@ -110,7 +110,7 @@ udf_disklabelspoof(dev_t dev, void (*str
*/
bp->b_blkno = sector * btodb(bsize);
bp->b_bcount = bsize;
- bp->b_flags |= (B_READ | B_RAW);
+ bp->b_flags = B_BUSY | B_READ | B_RAW;
bp->b_resid = bp->b_blkno / lp->d_secpercyl;
(*strat)(bp);
@@ -130,7 +130,7 @@ udf_disklabelspoof(dev_t dev, void (*str
for (sector = mvds_start; sector < mvds_end; sector++) {
bp->b_blkno = sector * btodb(bsize);
bp->b_bcount = bsize;
- bp->b_flags |= (B_READ | B_RAW);
+ bp->b_flags = B_BUSY | B_READ | B_RAW;
bp->b_resid = bp->b_blkno / lp->d_secpercyl;
(*strat)(bp);
--
We spend the first twelve months of our children's lives teaching
them to walk and talk and the next twelve telling them to sit down and
shut up.