Bug 36845

Summary: Add ioctls CDRIOCREADSPEED/WRITESPEED to the scsi cd driver
Product: Base System Reporter: Philipp Mergenthaler <philipp.mergenthaler>
Component: kernAssignee: njl
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Philipp Mergenthaler 2002-04-07 13:40:02 UTC
This patch adds the ioctls CDRIOCREADSPEED and CDRIOCWRITESPEED to the
scsi driver, which allow to set the drive's speed.

How-To-Repeat: 
To test this, you may want to use the patch to cdcontrol from
PR kern/35512.

To test whether your drive offers this capability, use
  camcontrol cmd cd0 -v -c 'bb 0 v:i2 0:i2 0 0 0 0 0 0' 2000
where the last number (here: 2000) is the speed in kB/s.
(But apparently there are drives which have a vendor specific command
for this and for which this patch may not work.)
Comment 1 njl freebsd_committer freebsd_triage 2002-08-16 08:57:49 UTC
State Changed
From-To: open->analyzed

Patch needs some reworking to fit scsi_cd/scsi_all semantics...  will analyze 
some more and consider committing this modulo fixes. 


Comment 2 njl freebsd_committer freebsd_triage 2002-08-16 08:57:49 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-scsi

new SCSI cd functionality
Comment 3 Johan Karlsson freebsd_committer freebsd_triage 2002-08-25 03:09:09 UTC
Responsible Changed
From-To: freebsd-scsi->scsi

Use short names for mailing list to make searches    
using the web query form work with the shown responsible. 

This also makes open PRs show up in the summery mail. 
k
Comment 4 njl freebsd_committer freebsd_triage 2002-10-18 23:04:58 UTC
State Changed
From-To: analyzed->closed

Modified patch was committed in scsi_cd.c v1.67 along with various changes 
to unify the API with atapi-cd.  The userland utils burncd and cdcontrol 
were also updated. 


Comment 5 njl freebsd_committer freebsd_triage 2002-10-18 23:04:58 UTC
Responsible Changed
From-To: scsi->njl

I wrote the new changes based on Philipp's patch.