Comment 10 for bug 36274

Revision history for this message
Ryan (ruinaudio) wrote :

with udev (077-0ubuntu3) permissions are set to:

brw-rw---- 1 root disk 8, 3 2005-12-08 09:48 sda3

ryanpg@ruinaudio:/dev$ udevinfo -a -p /block/sda/sda3

udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.

device '/sys/block/sda/sda3' has major:minor 8:3
  looking at class device '/sys/block/sda/sda3':
    KERNEL=="sda3"
    SUBSYSTEM=="block"
    SYSFS{dev}=="8:3"
    SYSFS{size}=="77010944"
    SYSFS{start}=="1128448"
    SYSFS{stat}==" 15 120 0 0"

follow the "device"-link to the physical device:
  looking at the device chain at
'/sys/devices/pci0000:00/0000:00:1e.0/0000:02:04.1/fw-host0/0030e002e0000bc8/0030e002e0000bc8-0/host1/target1:0:0/1:0:0:0':
    BUS=="scsi"
    ID=="1:0:0:0"
    DRIVER=="sd"
    SYSFS{device_blocked}=="0"
    SYSFS{ieee1394_id}=="0030e002e0000bc8:0:0"
    SYSFS{iocounterbits}=="32"
    SYSFS{iodone_cnt}=="0x34"
    SYSFS{ioerr_cnt}=="0x1"
    SYSFS{iorequest_cnt}=="0x34"
    SYSFS{model}=="0M9AT00 "
    SYSFS{queue_depth}=="1"
    SYSFS{queue_type}=="none"
    SYSFS{rev}==" "
    SYSFS{scsi_level}=="5"
    SYSFS{state}=="running"
    SYSFS{timeout}=="30"
    SYSFS{type}=="14"
    SYSFS{vendor}=="HTE72604"

  looking at the device chain at
'/sys/devices/pci0000:00/0000:00:1e.0/0000:02:04.1/fw-host0/0030e002e0000bc8/0030e002e0000bc8-0/host1/target1:0:0':
    BUS==""
    ID=="target1:0:0"
    DRIVER=="unknown"

  looking at the device chain at
'/sys/devices/pci0000:00/0000:00:1e.0/0000:02:04.1/fw-host0/0030e002e0000bc8/0030e002e0000bc8-0/host1':
    BUS==""
    ID=="host1"
    DRIVER=="unknown"

  looking at the device chain at
'/sys/devices/pci0000:00/0000:00:1e.0/0000:02:04.1/fw-host0/0030e002e0000bc8/0030e002e0000bc8-0':
    BUS=="ieee1394"
    ID=="0030e002e0000bc8-0"
    DRIVER=="sbp2"
    SYSFS{address}=="0x0000fffff0000830"
    SYSFS{ignore_driver}=="0"
    SYSFS{length}=="0"
    SYSFS{model_id}=="0x000001"
    SYSFS{model_name_kv}=="OXFORD IDE Device "
    SYSFS{specifier_id}=="0x00609e"
    SYSFS{version}=="0x010483"

  looking at the device chain at
'/sys/devices/pci0000:00/0000:00:1e.0/0000:02:04.1/fw-host0/0030e002e0000bc8':
    BUS=="ieee1394"
    ID=="0030e002e0000bc8"
    DRIVER=="unknown"
    SYSFS{bus_options}=="IRMC_0_ CMC_0_ ISC_0_ BMC_0_ PMC_0_ GEN_0_ LSPD_2_
MAX_REC_64_ MAX_ROM_0_ CYC_CLK_ACC_255_"
    SYSFS{capabilities}=="0x0083c0"
    SYSFS{guid_vendor_id}=="0x0030e0"
    SYSFS{guid}=="0x0030e002e0000bc8"
    SYSFS{guid_vendor_oui}=="OXFORD SEMICONDUCTOR LTD."
    SYSFS{nodeid}=="0xffc0"
    SYSFS{tlabels_allocations}=="277"
    SYSFS{tlabels_free}=="64"
    SYSFS{tlabels_mask}=="0x0000000000000000"
    SYSFS{vendor_id}=="0x0030e0"
    SYSFS{vendor_name_kv}=="Oxford Semiconductor Ltd. "
    SYSFS{vendor_oui}=="OXFORD SEMICONDUCTOR LTD."

  looking at the device chain at
'/sys/devices/pci0000:00/0000:00:1e.0/0000:02:04.1/fw-host0':
    BUS=="ieee1394"
    ID=="fw-host0"
    DRIVER=="unknown"
    SYSFS{in_bus_reset}=="0"
    SYSFS{is_busmgr}=="0"
    SYSFS{is_cycmst}=="1"
    SYSFS{is_irm}=="1"
    SYSFS{is_root}=="1"
    SYSFS{node_count}=="2"
    SYSFS{nodes_active}=="2"
    SYSFS{selfid_count}=="2"

  looking at the device chain at
'/sys/devices/pci0000:00/0000:00:1e.0/0000:02:04.1':
    BUS=="pci"
    ID=="0000:02:04.1"
    DRIVER=="ohci1394"
    SYSFS{class}=="0x0c0010"
    SYSFS{device}=="0x8029"
    SYSFS{irq}=="11"
    SYSFS{local_cpus}=="ff"
    SYSFS{modalias}=="pci:v0000104Cd00008029sv00001028sd00000149bc0Csc00i10"
    SYSFS{subsystem_device}=="0x0149"
    SYSFS{subsystem_vendor}=="0x1028"
    SYSFS{vendor}=="0x104c"

  looking at the device chain at '/sys/devices/pci0000:00/0000:00:1e.0':
    BUS=="pci"
    ID=="0000:00:1e.0"
    DRIVER=="unknown"
    SYSFS{class}=="0x060400"
    SYSFS{device}=="0x244e"
    SYSFS{irq}=="0"
    SYSFS{local_cpus}=="ff"
    SYSFS{modalias}=="pci:v00008086d0000244Esv00000000sd00000000bc06sc04i00"
    SYSFS{subsystem_device}=="0x0000"
    SYSFS{subsystem_vendor}=="0x0000"
    SYSFS{vendor}=="0x8086"

  looking at the device chain at '/sys/devices/pci0000:00':
    BUS==""
    ID=="pci0000:00"
    DRIVER=="unknown"