From owner-freebsd-scsi Thu Oct 5 21:21:36 2000 Delivered-To: freebsd-scsi@freebsd.org Received: from cx587235-a.chnd1.az.home.com (cx587235-a.chnd1.az.home.com [24.11.88.170]) by hub.freebsd.org (Postfix) with ESMTP id 5349E37B502 for ; Thu, 5 Oct 2000 21:21:34 -0700 (PDT) Received: from whale.home-net (whale [192.168.1.2]) by cx587235-a.chnd1.az.home.com (8.9.3/8.9.3) with ESMTP id VAA36868 for ; Thu, 5 Oct 2000 21:21:34 -0700 (MST) (envelope-from jjreynold@home.com) Received: (from jjreynold@localhost) by whale.home-net (8.11.0/8.11.0) id e964LXa35425; Thu, 5 Oct 2000 21:21:33 -0700 (MST) (envelope-from jjreynold@home.com) From: John Reynolds MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14813.21325.718668.456937@whale.home-net> Date: Thu, 5 Oct 2000 21:21:33 -0700 (MST) To: scsi@freebsd.org Subject: what part of the driver locks the CD tray? X-Mailer: VM 6.75 under Emacs 20.7.1 Cc: Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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