From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 23 19:35:14 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13FB116A4E7 for ; Wed, 23 Jan 2008 19:35:14 +0000 (UTC) (envelope-from martin.laabs@mailbox.tu-dresden.de) Received: from mailout2.zih.tu-dresden.de (mailout2.zih.tu-dresden.de [141.30.67.73]) by mx1.freebsd.org (Postfix) with ESMTP id D4FA913C4CC for ; Wed, 23 Jan 2008 19:35:13 +0000 (UTC) (envelope-from martin.laabs@mailbox.tu-dresden.de) Received: from rmc67-31.zih.tu-dresden.de ([141.30.67.31] helo=server-n) by mailout2.zih.tu-dresden.de with esmtp (Exim 4.63) (envelope-from ) id 1JHl8C-0001B0-9Z for freebsd-hackers@freebsd.org; Wed, 23 Jan 2008 20:19:30 +0100 Received: from martin (p5B0ED0A2.dip.t-dialin.net [91.14.208.162]) by server-n (Postfix) with ESMTP id DADC9100A08E for ; Wed, 23 Jan 2008 20:19:25 +0100 (CET) Date: Wed, 23 Jan 2008 20:19:24 +0100 To: freebsd-hackers@freebsd.org From: "Martin Laabs" Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-ID: User-Agent: Opera Mail/9.25 (Linux) X-TUD-Virus-Scanned: mailout2.zih.tu-dresden.de X-Mailman-Approved-At: Wed, 23 Jan 2008 20:33:16 +0000 Subject: update slices on (a)cd devices X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2008 19:35:14 -0000 Hi, I ask the same question some day on -questions before but got no usefull answer. Since it is also more technical related I try it here again. I created a dvd with two slices a and b. (Don't ask for the reason - it is a test for my backup system) This slices are ufs formated and gbde encrypted. However - if I insert the DVD (and also a read access is done) the device nodes acd0a and acd0b are not created automaticly. But if the DVD is inserted *before* boot this two nodes are there and stay even if I insert a "normal" DVD without slices. An other way to update the device nodes is to detach an attach the ata channel with atacontrol while the "sliced" DVD is beeing inserted. But this is not very smart. (In particular if there is i.e. a second device at this channel that is then disconnected too.) A similar way it to reload the atapicam modul. In this case the cd0* device nodes are updated. The problems are the same as with atacontroll de-/attach. So I'am searching for a better way to tell the kernel/devfs to update the device node list of the atapi devices. Unfortu- nately I couldn't find a appropiate ioctl in the source of atacontrol. Since I didn't understand the conecpt of geom fully now I'm not sure whether geom also handle the "single" (a)d[0-] and (a)cd[0-] devices and if there is maybe a geom command for the "slice reread" Thank you, Martin L.