> Current media detection code can be flaky on some drives though, see if 
> it works for you. Works fine on my Lite-On LH-18A1P, but has problems 
> with writable DVDs on Sony DRU-830 (bug needs fixing).

Ah, found the bug. The fix is:

+++ usr/src/cmd/hal/utils/cdutils.c     Wed Apr 16 13:01:04 2008
@@ -375,8 +375,9 @@
         /*
          * According to MMC-5 6.22.3.2, the Disc Information Length 
should be
          * 32+8*(Number of OPC Tables). Some devices, like U3 sticks, 
return 0.
+        * Yet some drives can return less than 32. We only need the 
first 22.
          */
-       if (GET16(&buf[0]) < 32) {
+       if (GET16(&buf[0]) < 22) {
                 return (B_FALSE);
         }

I filed: 6689694 HAL fails to detect blank DVD on certain drives

-Artem
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to