From owner-freebsd-arch Thu Nov 29 7:57:42 2001 Delivered-To: freebsd-arch@freebsd.org Received: from cypherpunks.cryptohill.net (sub-168ip36.carats.net [216.152.168.36]) by hub.freebsd.org (Postfix) with ESMTP id 8B04937B42A; Thu, 29 Nov 2001 07:57:35 -0800 (PST) Received: from jeroen (sub-168ip56.carats.net [216.152.168.56]) by cypherpunks.cryptohill.net (Postfix) with ESMTP id CFE571C8F7; Thu, 29 Nov 2001 11:57:28 -0400 (AST) From: "Jeroen C. van Gelderen" To: "'Poul-Henning Kamp'" , "'Robert Watson'" Cc: "'Josef Karthauser'" , "'Garrett Wollman'" , , Subject: RE: Anybody working on devd? Date: Thu, 29 Nov 2001 11:57:27 -0400 Message-ID: <001401c178ee$8b6d7300$38a898d8@cryptohill.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 In-Reply-To: <38117.1006972995@critter.freebsd.dk> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >And where do you want to run the devd for jails ? Inside the > jail ? I assumed that Robert was aiming at a single devd for the whole system. Here is how I imagined it would work: There seems to be a parent-child relationship between the host and the various jail devfs instances. The devfs instance in a jail contains a subset of the nodes in the host (parent) devfs. Now if each jail devfs has as a parent the hosts devfs and the host is its own parent, we have each devfs instance put a control node (/dev/devfsctl) in its parent. Thus the host devfs would end up containing a series of /dev/devfsctl* nodes controlling all devfs instances on the machine and a single devd would open those and control every devfs. Each devfs would have a local /dev/devfsevent node that clients can listen to to be notified about device arrival and removal. Another thought was that each jail devfs could show up in a directory on the main devfs: /dev/ad0s1a /dev/ad0s1c /dev/ad0s1e /dev/ttya /dev/ttyb /dev/jail0/ttyb /dev/jail0/ad0s1e /dev/jail1/ttyb This would in fact allow for easy management of the jail devfs. Maybe the jails could be controlled with a device node as well: /dev/jail0.ctl /dev/jail0/ttyb /dev/jail0/ad0s1e /dev/jail1.ctl /dev/jail1/ttyb Whether this is possible or not I don't know. But it is what I imagined from Robert's mails... Cheers, Jeroen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message