From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <58788bdc3f16ccde4cd9c19600229a1b@plan9.escet.urjc.es> To: 9fans@cse.psu.edu Subject: Re: [9fans] fun with cfs. From: "Fco. J. Ballesteros" Date: Wed, 12 Jan 2005 19:33:05 +0100 In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-xlwxfhuxukoloyzaczoaahyaji" Topicbox-Message-UUID: 2c5e2880-eace-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-xlwxfhuxukoloyzaczoaahyaji Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit You have iostats and the -D flag in ramfs. Isn't that what you want? Or am I sleeping? --upas-xlwxfhuxukoloyzaczoaahyaji Content-Type: message/rfc822 Content-Disposition: inline Received: from mail.cse.psu.edu ([130.203.4.6]) by aquamar; Wed Jan 12 19:26:45 MET 2005 Received: from psuvax1.cse.psu.edu (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 1DF7C63FA5 for ; Wed, 12 Jan 2005 13:26:44 -0500 (EST) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: from localhost (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id ECE1F63ECB for <9fans@cse.psu.edu>; Wed, 12 Jan 2005 13:26:35 -0500 (EST) Received: from mail.cse.psu.edu ([127.0.0.1]) by localhost (psuvax1 [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21867-01-38 for <9fans@cse.psu.edu>; Wed, 12 Jan 2005 13:26:33 -0500 (EST) Received: from mailwasher-b.lanl.gov (mailwasher.lanl.gov [192.65.95.54]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id A213263EC3 for <9fans@cse.psu.edu>; Wed, 12 Jan 2005 13:26:33 -0500 (EST) Received: from ccs-mail.lanl.gov (ccs-mail.lanl.gov [128.165.4.126]) by mailwasher-b.lanl.gov (8.12.11/8.12.11/(ccn-5)) with ESMTP id j0CIQruZ023592 for <9fans@cse.psu.edu>; Wed, 12 Jan 2005 11:26:53 -0700 Received: from bluesteel.lanl.gov (bluesteel.lanl.gov [128.165.250.198]) by ccs-mail.lanl.gov (8.12.11/8.12.11/(ccn-5)) with ESMTP id j0CIQUcI010993 for <9fans@cse.psu.edu>; Wed, 12 Jan 2005 11:26:31 -0700 Date: Wed, 12 Jan 2005 11:26:30 -0700 (MST) From: "Ronald G. Minnich" To: 9fans@cse.psu.edu Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-PMX-Version: 4.7.0.111621 X-PMX-Version: 4.7.0.111621 X-Virus-Scanned: by amavisd-new at cse.psu.edu Subject: [9fans] fun with cfs. X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: 9fans-bounces+nemo=lsub.org@cse.psu.edu Errors-To: 9fans-bounces+nemo=lsub.org@cse.psu.edu I've been playing around with lib9p and then started looking at cfs. You can do something with cfs that is kind of fun. I can send patches if anyone wants them. Basically, you rip all the caching out of cfs and you have a very nice tutorial program for seeing how 9p works. Took about 15 mins. You end up with cfs.c and (IIRC) stats.h or some such, so you get one .c file and you can then: ./cfs -S -d il!yourhost And you get this nice mountpoint, which you can cd to, ls, to things in inside of .... all while watching the 9p traffic so you can see how it works. Good fun. It would be great for showing people how 9p works or for classes. Even better is letting poor suffering students do the same thing with nfs, and then with 9p; you really start to appreciate 9p if you've done a lot of NFS (which I have ...). Now here's where somebody tells me: that file system already exists, just do x and y and z; so, if this is useless, well, I had fun anyway; if not, then I'll send the c-diffs as they are very short. thanks ron --upas-xlwxfhuxukoloyzaczoaahyaji--