From owner-freebsd-fs Sun Jan 23 20:49:46 2000 Delivered-To: freebsd-fs@freebsd.org Received: from yana.lemis.com (yana.lemis.com [192.109.197.140]) by hub.freebsd.org (Postfix) with ESMTP id C79AD150A2 for ; Sun, 23 Jan 2000 20:49:40 -0800 (PST) (envelope-from grog@mojave.worldwide.lemis.com) Received: from mojave.worldwide.lemis.com (j13.ktb6.jaring.my [161.142.234.27]) by yana.lemis.com (8.8.8/8.8.8) with ESMTP id PAA12821; Mon, 24 Jan 2000 15:19:12 +1030 (CST) (envelope-from grog@mojave.worldwide.lemis.com) Received: (from grog@localhost) by mojave.worldwide.lemis.com (8.9.3/8.9.3) id MAA02881; Mon, 24 Jan 2000 12:44:53 +0800 (MYT) (envelope-from grog) Date: Mon, 24 Jan 2000 12:44:53 +0800 From: Greg Lehey To: Assar Westerlund , Brian Beattie Cc: Robert Watson , fs@FreeBSD.ORG Subject: Re: UDF, userfs Message-ID: <20000124124453.G2643@mojave.worldwide.lemis.com> Reply-To: Greg Lehey References: <5l1z79um0a.fsf@assaris.sics.se> <5liu0l1ay3.fsf@assaris.sics.se> <20000122131656.C391@mojave.worldwide.lemis.com> <5liu0l1ay3.fsf@assaris.sics.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <5liu0l1ay3.fsf@assaris.sics.se>; from assar@sics.se on Sun, Jan 23, 2000 at 08:52:52AM +0100 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sunday, 23 January 2000 at 8:52:52 +0100, Assar Westerlund wrote: > Greg Lehey writes: >> Hmm. A kld runs in kernel context, not user context. Sure, it's >> easier to load than rebuilding a kernel, and I believe klds are the >> correct approach to added kernel functionality, but it doesn't offer >> one of the prime advantages of userland development: if your program >> crashes, your program crashes, not the system. If you're developing a >> kld, a bug can crash the system. > > Yes, but both the Coda and the Arla kld are very simple and all the > real work (and thus, the devlopment) takes part in the user space > daemon. The kld is mostly there as a way of communicating with the > kernel. They work now. How long did it take to debug them? On Sunday, 23 January 2000 at 11:21:09 +0100, Assar Westerlund wrote: > Brian Beattie writes: >>> Yes, but both the Coda and the Arla kld are very simple and all the >> >> I would disagree that they are very simple. > > Well, make that `simple and much simpler than the corresponding code > inside the kernel would be' then? The point is that you're keeping > most of the complexity and the code that changes outside of the > kernel. It sounds like what you're saying is that the kld is an interface to userland code which does work which would normally be in the kernel. That's different from most klds, which contain code identical to that in the kernel. That might be an option, but in fact the old block device interface was exactly such an option. My suggestion to have it as a kld appears to be pretty much the same concept as what you're talking about, though I suspect the interface would be at a lower level. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message