From owner-freebsd-arch@FreeBSD.ORG Mon Jan 14 11:17:28 2008 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98AAE16A417 for ; Mon, 14 Jan 2008 11:17:28 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from falcon.cybervisiontech.com (falcon.cybervisiontech.com [217.20.163.9]) by mx1.freebsd.org (Postfix) with ESMTP id 74BB313C448 for ; Mon, 14 Jan 2008 11:17:27 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from localhost (localhost [127.0.0.1]) by falcon.cybervisiontech.com (Postfix) with ESMTP id 205EA74400E for ; Mon, 14 Jan 2008 12:52:23 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at falcon.cybervisiontech.com Received: from falcon.cybervisiontech.com ([127.0.0.1]) by localhost (falcon.cybervisiontech.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B+cJABb-87fk for ; Mon, 14 Jan 2008 12:52:23 +0200 (EET) Received: from [10.2.1.87] (gateway.cybervisiontech.com.ua [88.81.251.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by falcon.cybervisiontech.com (Postfix) with ESMTP id D429574400C for ; Mon, 14 Jan 2008 12:52:22 +0200 (EET) Message-ID: <478B3EE0.8040908@icyb.net.ua> Date: Mon, 14 Jan 2008 12:52:16 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.9 (X11/20071116) MIME-Version: 1.0 To: freebsd-arch@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: cdcontrol purpose X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jan 2008 11:17:28 -0000 The following question may seem to be offtopic for this list, but I think that it's not because it is related not only to cdcontrol utility itself but also to the CD-ROM drivers. The question: should cdcontrol utility be able to eject a mounted disk (i.e. a filesystem on the disk is mounted) ? This question could also be understood as: should cdcontrol be a powerful administration tool that allows foot-shooting or should it be a basic tool that gives a user some control over a CD-ROM drive ? cdcontrol(1) seems to hint at the latter: DESCRIPTION The cdcontrol utility is a program to control audio features of a CD drive. The device is a name such as cd0 or acd0. [emphasis on "audio features"] More technical background description can be found at: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=457200+0+archive/2007/freebsd-stable/20071223.freebsd-stable Description of even weirder problems caused by smart userland software (HAL), dozen message thread: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=785719+0+archive/2007/freebsd-questions/20071216.freebsd-questions P.S. CVS log suggests that cdcontrol code stayed the same from initial version 1.1. P.P.S. issuing ioctl(CDIOCALLOW) before closing tray seems even more dubious. -- Andriy Gapon