cd(9freebsd)


NAME

     cd --- CDROM driver for the CAM SCSI subsystem

DESCRIPTION

     The cd device driver provides a read-only interface for CDROM drives
     (SCSI type 5) and WORM drives (SCSI type 4) that support CDROM type
     commands.  Some drives do not behave as the driver expects.  See the
     QUIRKS section for information on possible flags.

QUIRKS

     Each CD-ROM device can have different interpretations of the SCSI spec.
     This can lead to drives requiring special handling in the driver.  The
     following is a list of quirks that the driver recognize.

     CD_Q_NO_TOUCH    This flag tells the driver not to probe the drive at
                  attach time to see if there is a disk in the drive and
                  find out what size it is.  This flag is currently
                  unimplemented in the CAM cd driver.

     CD_Q_BCD_TRACKS  This flag is for broken drives that return the track
                  numbers in packed BCD instead of straight decimal.  If
                  the drive seems to skip tracks (tracks 10-15 are
                  skipped) then you have a drive that is in need of this
                  flag.

     CD_Q_NO_CHANGER  This flag tells the driver that the device in question
                  is not a changer.  This is only necessary for a CDROM
                  device with multiple luns that are not a part of a
                  changer.

     CD_Q_CHANGER     This flag tells the driver that the given device is a
                  multi-lun changer.  In general, the driver will figure
                  this out automatically when it sees a LUN greater than
                  0.  Setting this flag only has the effect of telling the
                  driver to run the initial read capacity command for LUN
                  0 of the changer through the changer scheduling code.

     CD_Q_10_BYTE_ONLY
                  This flag tells the driver that the given device only
                  accepts 10 byte MODE SENSE/MODE SELECT commands.  In
                  general these types of quirks should not be added to the
                  cd(4) driver.  The reason is that the driver does
                  several things to attempt to determine whether the drive
                  in question needs 10 byte commands.  First, it issues a
                  CAM Path Inquiry command to determine whether the
                  protocol that the drive speaks typically only allows 10
                  byte commands.  (ATAPI and USB are two prominent
                  examples of protocols where you generally only want to
                  send 10 byte commands.)  Then, if it gets an ILLEGAL
                  REQUEST error back from a 6 byte MODE SENSE or MODE
                  SELECT command, it attempts to send the 10 byte version
                  of the command instead.  The only reason you would need
                  a quirk is if your drive uses a protocol (e.g., SCSI)
                  that typically does not have a problem with 6 byte
                  commands.

FILES

     /sys/cam/scsi/scsi_cd.c  is the driver source file.

SEE ALSO

     cd(4), scsi(4)

HISTORY

     The cd manual page first appeared in FreeBSD 2.2.

AUTHORS

     This manual page was written by John-Mark Gurney jmg@FreeBSD.org.  It
     was updated for CAM and FreeBSD 3.0 by Kenneth Merry ken@FreeBSD.org.





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.