> I cut and pasted your script and then made the assumption
> that the printf statement goes on a single line.  I get an error:
> 
> [t43p:/home/stu/temp/dtrace]# ./cd_eject
> 
> dtrace: failed to compile script ./cd_eject: line 5: syntax error near ")"

Syntax is correct, but it seems the scsa1394 kernel module wasn't loaded 
when you tried to run the script, so the typedef "scsa1394_state_t" was unknown.

- hotplug the firewire optiocal device

- double check that the scsa1394 kernel module is loaded

# modinfo |grep scsa1394
193 f7fb1000   5944 197   1  scsa1394 (1394 Mass Storage HBA Driver 1.)

- run ./cd_eject
 
 
This message posted from opensolaris.org

Reply via email to