Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Oct 2000 21:21:33 -0700 (MST)
From:      John Reynolds <jjreynold@home.com>
To:        scsi@freebsd.org
Subject:   what part of the driver locks the CD tray?
Message-ID:  <14813.21325.718668.456937@whale.home-net>

next in thread | raw e-mail | index | archive | help

Hello -scsi,

What part of the cd driver locks the tray when media is mounted?

I have a 1.8 year old son who LOVES to push the buttons on my CD and CDRW,
watch the tray come out, then, with all the grace and skill a
2-year-old-wanna-be can must, shoving the tray back into the drive (of course
making the stepper motors squeel with pain).

I've resorted to keeping CDs in both drives and mounting the iso9660
filesystems. This keeps the drives from being messed with as the eject button
is "disabled" while the media is mounted.

What I'm wondering is where this is in the cd driver? Is it deep down in the cd
driver? Some CAM layer? ioctl?

I would love to be able to figure this out and perhaps add something into
camcontrol to lock the drive trays in without having media in them (it's just a
PITA to have discs in the drives all the time). Sort like the evil reverse of
"camcontrol eject".

I also see from the man page that there is a 'cmd' option to camcontrol. Is
there a specific command I can send to the device to lock and unlock its tray?
What would this be?

I would much appreciate any help I can get 2-year-old proofing this machine :)
(already had to "unplug" the ATX power and reset lines from the easy-to-push
switches :).

Regards,

-Jr

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
John Reynolds         Chandler Capabilities Engineering, CDS, Intel Corporation
jreynold@sedona.ch.intel.com  My opinions are mine, not Intel's. Running
jjreynold@home.com          FreeBSD 4.1-STABLE. FreeBSD: The Power to Serve.
http://members.home.com/jjreynold/  Come join us!!! @ http://www.FreeBSD.org/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message




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