Comment 10 for bug 356631

Brian Murray (brian-murray) wrote :

This is after ejecting the problematic drive in my system with an audio CD inserted:

monitor will print the received events for:
UDEV the event which udev sends out after rule processing
UEVENT the kernel uevent

UEVENT[1239210231.132001] change /devices/pci0000:00/0000:00:1f.1/host4/target4:0:1/4:0:1:0 (scsi)
UDEV_LOG=3
ACTION=change
DEVPATH=/devices/pci0000:00/0000:00:1f.1/host4/target4:0:1/4:0:1:0
SUBSYSTEM=scsi
SDEV_MEDIA_CHANGE=1
DEVTYPE=scsi_device
DRIVER=sr
MODALIAS=scsi:t-0x05
SEQNUM=2158

UEVENT[1239210231.138724] change /devices/pci0000:00/0000:00:1f.1/host4/target4:0:1/4:0:1:0/block/sr1 (block)
UDEV_LOG=3
ACTION=change
DEVPATH=/devices/pci0000:00/0000:00:1f.1/host4/target4:0:1/4:0:1:0/block/sr1
SUBSYSTEM=block
DEVTYPE=disk
SEQNUM=2159
MAJOR=11
MINOR=1

UDEV [1239210231.138813] change /devices/pci0000:00/0000:00:1f.1/host4/target4:0:1/4:0:1:0 (scsi)
UDEV_LOG=3
ACTION=change
DEVPATH=/devices/pci0000:00/0000:00:1f.1/host4/target4:0:1/4:0:1:0
SUBSYSTEM=scsi
SDEV_MEDIA_CHANGE=1
DEVTYPE=scsi_device
DRIVER=sr
MODALIAS=scsi:t-0x05
SEQNUM=2158

UDEV [1239210234.112888] change /devices/pci0000:00/0000:00:1f.1/host4/target4:0:1/4:0:1:0/block/sr1 (block)
UDEV_LOG=3
ACTION=change
DEVPATH=/devices/pci0000:00/0000:00:1f.1/host4/target4:0:1/4:0:1:0/block/sr1
SUBSYSTEM=block
DEVTYPE=disk
SEQNUM=2159
ID_CDROM=1
ID_CDROM_CD_R=1
ID_CDROM_CD_RW=1
ID_CDROM_MEDIA_STATE=blank
ID_CDROM_MEDIA_SESSION_NEXT=24832
ID_CDROM_MEDIA_SESSION_COUNT=16640
ID_CDROM_MEDIA_TRACK_COUNT=22272
ID_VENDOR=SONY
ID_VENDOR_ENC=SONY\x20\x20\x20\x20
ID_MODEL=CD-RW_CRX217E
ID_MODEL_ENC=CD-RW\x20\x20CRX217E\x20\x20
ID_REVISION=1DS2
ID_TYPE=cd
ID_BUS=scsi
ID_PATH=pci-0000:00:1f.1-scsi-0:0:1:0
GENERATED=1
DEVNAME=/dev/sr1
MAJOR=11
MINOR=1
DEVLINKS=/dev/block/11:1 /dev/scd1 /dev/disk/by-path/pci-0000:00:1f.1-scsi-0:0:1:0 /dev/cdrom1 /dev/cdrw1