From owner-cvs-all Sun Apr 8 12:10:41 2001 Delivered-To: cvs-all@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 04EFC37B422; Sun, 8 Apr 2001 12:10:35 -0700 (PDT) (envelope-from des@ofug.org) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id VAA82473; Sun, 8 Apr 2001 21:10:32 +0200 (CEST) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Poul-Henning Kamp Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/fs/pseudofs pseudofs.c pseudofs.h pseudofs_fileno.c pseudofs_internal.h pseudofs_vncache.c pseudofs_vnops.c References: <1478.986741117@critter> From: Dag-Erling Smorgrav Date: 08 Apr 2001 21:10:32 +0200 Message-ID: Lines: 27 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Poul-Henning Kamp writes: > I pressume your pseudofs in a similar way hides all the directory > handling for virtual filesystems ? A pseudofs-based fs defines the following: - a bunch of structs listing the name, type etc. of every node in the file system (directories, files, links and device nodes) - handler functions that generate the content of the files and links, using the sbuf API - (not yet) handler functions that implement security policies (determining if the requesting process is allowed to perform the requested operation) - (not yet) handler functions that generate process-dependent nodes on demand The pseudofs code does all the rest. The ultimate goal is to reduce to a minimum the amount of code duplicated between various existing incarnations of procfs, and make it much simpler to write new ones. I hope it will also reduce the footprint of such filesystems. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message