Turn off the load_eject bit in cdstartunit(). It causes an `Invalid

field in CDB' error when attempting to start a caddy-type CD drive,
since those drives apparently in general refuse to load a medium.  Since
we never advertised the feature to load the medium upon calling
cdstartunit() (i. e. upon receipt of a CDIOCSTART ioctl command), nobody
should have relied on it.  Besides, nobody noticed so far at all that
this command is failing for caddy-type drives...  Only few applications
seem to use it at all (among them is workman, which made me notice it).

Reviewed by:	ken
This commit is contained in:
Joerg Wunsch 2000-12-04 20:16:06 +00:00
parent 06617fbb29
commit 50088f2089
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=69577

View file

@ -3038,7 +3038,7 @@ cdstartunit(struct cam_periph *periph)
/* cbfcnp */ cddone,
/* tag_action */ MSG_SIMPLE_Q_TAG,
/* start */ TRUE,
/* load_eject */ TRUE,
/* load_eject */ FALSE,
/* immediate */ FALSE,
/* sense_len */ SSD_FULL_SIZE,
/* timeout */ 50000);