Artem Kachitchkine <[EMAIL PROTECTED]> wrote:

>
> I'm sure there's some way to do it with cdrecord, though I don't know 
> which options to use. You can also parse output of 'cdrw -MV'. A more 
> structured approach (on Nevada) is using HAL:
>
> $ for udi in `hal-find-by-capability --capability volume.disc`; do
>  >         hal-get-property --udi $udi --key volume.disc.is_blank
>  >         hal-get-property --udi $udi --key volume.disc.type
>  > done
>
> true
> dvd_plus_r
>
> (same functionality is easy to program in C, Python and Java, using 
> respective DBus bindings).
>
> 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).

Why used second class information from HAL while cdrecord gives you complete 
and correct information?

Jörg

-- 
 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
       [EMAIL PROTECTED]                (uni)  
       [EMAIL PROTECTED]     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to