HomeFreeBSD

ctl: Fix CTL GET EVENT STATUS NOTIFICATION valid bits

Description

ctl: Fix CTL GET EVENT STATUS NOTIFICATION valid bits

Linux as an initiator periodically sends the following to SCSI cdrom
devices: 4a 01 00 00 10 00 00 00 08 00

According to the ctl_cmd_entry for this command this is invalid which
leads to a lot of failed SCSI commands.

The mask in this commit is based off of an early draft of the mmc
standard, https://www.t10.org/ftp/t10/document.97/97-108r0.pdf,
as well as subsequent standards (mmc2 through mmc6).

This solves the issue with Linux initiators.

Signed-off-by: HP van Braam <hp@tmm.cx>
Reviewed by: imp, mav
Pull Request: https://github.com/freebsd/freebsd-src/pull/1201

Details

Provenance
hp_tmm.cxAuthored on Apr 29 2024, 2:34 PM
impCommitted on Apr 29 2024, 2:37 PM
Parents
rG5824df8d991c: pf: convert DIOCGETSTATUS to netlink
Branches
Unknown
Tags
Unknown