Comment 9 for bug 602862

Revision history for this message
Bernard Decock (decockbernard) wrote :

bernard@Ubuntu-Bernard:~$ apt-cache policy udev

udev:

  Geïnstalleerd: 151-12

  Kandidaat: 151-12

  Versietabel:

 *** 151-12 0

        500 http://be.archive.ubuntu.com/ubuntu/ lucid/main Packages

        100 /var/lib/dpkg/status

bernard@Ubuntu-Bernard:~$ udevadm version

151

udevadm info -a -p $(udevadm info -q path -n /dev/sr1)

Udevadm info starts with the device specified by the devpath and then

walks up the chain of parent devices. It prints for every device

found, all possible attributes in the udev rules key format.

A rule to match, can be composed by the attributes of the device

and the attributes from one single parent device.

  looking at device '/devices/pci0000:00/0000:00:07.1/host1/target1:0:1/1:0:1:0/block/sr1':

    KERNEL=="sr1"

    SUBSYSTEM=="block"

    DRIVER==""

    ATTR{range}=="1"

    ATTR{ext_range}=="1"

    ATTR{removable}=="1"

    ATTR{ro}=="0"

    ATTR{size}=="0"

    ATTR{alignment_offset}=="0"

    ATTR{capability}=="19"

    ATTR{stat}==" 50 0 200 36 0 0 0 0 0 36 36"

    ATTR{inflight}==" 0 0"

  looking at parent device '/devices/pci0000:00/0000:00:07.1/host1/target1:0:1/1:0:1:0':

    KERNELS=="1:0:1:0"

    SUBSYSTEMS=="scsi"

    DRIVERS=="sr"

    ATTRS{device_blocked}=="0"

    ATTRS{type}=="5"

    ATTRS{scsi_level}=="6"

    ATTRS{vendor}=="HL-DT-ST"

    ATTRS{model}=="CD-RW GCE-8320B "

    ATTRS{rev}=="1.04"

    ATTRS{state}=="running"

    ATTRS{timeout}=="30"

    ATTRS{iocounterbits}=="32"

    ATTRS{iorequest_cnt}=="0xc07"

    ATTRS{iodone_cnt}=="0xa9e"

    ATTRS{ioerr_cnt}=="0x0"

    ATTRS{modalias}=="scsi:t-0x05"

    ATTRS{evt_media_change}=="0"

    ATTRS{dh_state}=="detached"

    ATTRS{queue_depth}=="1"

    ATTRS{queue_type}=="none"

  looking at parent device '/devices/pci0000:00/0000:00:07.1/host1/target1:0:1':

    KERNELS=="target1:0:1"

    SUBSYSTEMS=="scsi"

    DRIVERS==""

  looking at parent device '/devices/pci0000:00/0000:00:07.1/host1':

    KERNELS=="host1"

    SUBSYSTEMS=="scsi"

    DRIVERS==""

  looking at parent device '/devices/pci0000:00/0000:00:07.1':

    KERNELS=="0000:00:07.1"

    SUBSYSTEMS=="pci"

    DRIVERS=="pata_via"

    ATTRS{vendor}=="0x1106"

    ATTRS{device}=="0x0571"

    ATTRS{subsystem_vendor}=="0x0000"

    ATTRS{subsystem_device}=="0x0000"

    ATTRS{class}=="0x01018a"

    ATTRS{irq}=="0"

    ATTRS{local_cpus}=="ff"

    ATTRS{local_cpulist}=="0-7"

    ATTRS{modalias}=="pci:v00001106d00000571sv00000000sd00000000bc01sc01i8a"

    ATTRS{broken_parity_status}=="0"

    ATTRS{msi_bus}==""

  looking at parent device '/devices/pci0000:00':

    KERNELS=="pci0000:00"

    SUBSYSTEMS==""

    DRIVERS==""

Jul 16 17:42:03 Ubuntu-Bernard kernel: [ 2.071757] scsi 1:0:1:0: CD-ROM HL-DT-ST CD-RW GCE-8320B 1.04 PQ: 0 ANSI: 5

Jul 16 17:42:03 Ubuntu-Bernard kernel: [ 2.074005] sr1: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray

Jul 16 17:42:03 Ubuntu-Bernard kernel: [ 2.074591] sr 1:0:1:0: Attached scsi CD-ROM sr1

Jul 16 17:42:03 Ubuntu-Bernard kernel: [ 2.074861] sr 1:0:1:0: Attached scsi generic sg3 type 5