Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Jul 2020 14:17:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 248368] devd MEDIACHANGE events are delivered unreliably for /dev/cdX devices
Message-ID:  <bug-248368-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248368

            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@FreeBSD.org
          Reporter: arrowd@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=3DDEVFS subsystem=3DCDEV type=3DMEDIACHANGE cdev=3Dcd0
!system=3DGEOM subsystem=3DDEV type=3DMEDIACHANGE cdev=3Dcd0

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 releva=
nt:

!system=3DCAM subsystem=3Dperiph type=3Derror device=3Dcd0 serial=3D"K1KH3T=
A2730"
cam_status=3D"0xcc" scsi_status=3D2 scsi_sense=3D"71 02 3a 02" CDB=3D"00 00=
 00 00 00 00
"

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-248368-227>