[Bug 248368] devd MEDIACHANGE events are delivered unreliably for /dev/cdX devices

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jul 30 14:17:31 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248368

            Bug ID: 248368
           Summary: devd MEDIACHANGE events are delivered unreliably for
                    /dev/cdX devices
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: arrowd at FreeBSD.org

1. VirtualBox

On a VirtualBox VM with a CD-ROM device attached I run:

# cat /var/run/devd.pipe | grep cd

While it runs, I insert and then eject an ISO image to/from the drive. This
yields MEDIACHANGE event only during **ejection**:

!system=DEVFS subsystem=CDEV type=MEDIACHANGE cdev=cd0
!system=GEOM subsystem=DEV type=MEDIACHANGE cdev=cd0

2. Real hardware

The same test done on real computer and DVD-ROM drive results in MEDIACHANGE
events emitted during **insertion** only, and not on ejection.

Additionally, devd log is spammed with following errors, not sure if relevant:

!system=CAM subsystem=periph type=error device=cd0 serial="K1KH3TA2730"
cam_status="0xcc" scsi_status=2 scsi_sense="71 02 3a 02" CDB="00 00 00 00 00 00
"

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list