From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Mon, 14 Jan 2008 01:20:38 -0800 From: "Christopher Nielsen" To: alltom@gmail.com, "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] Easiest way to make a filesystem In-Reply-To: <326364c20801140111v1bf9b574p80ea0305edf09c14@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <326364c20801140111v1bf9b574p80ea0305edf09c14@mail.gmail.com> Cc: Topicbox-Message-UUID: 2dab6e00-ead3-11e9-9d60-3106f5b1d025 have a look at /sys/lib/lib9p/ramfs.c as a guide for writing one in C. in the past, i have found it useful and educational. On Jan 14, 2008 1:11 AM, Tom Lieber wrote: > I'd like to make a few simple filesystems for personal use to do > things such as combine files or translate between different formats -- > really simple stuff, on par with the filesystems described in the > "laying namespaces" paper from IWP9. > > Is the easiest way to make a filesystem to make one in C in the way > described in Francisco's book? Are there any wrapping libraries for > the simplest filesystems? Or filesystems like these to base my work > on? > > shifs (Uriel) seemed encouraging, as did tmfs (Noah Evans), though I > can't find source, nor determine the viability of either without it. I > think they are for Inferno. > > I just obtained trfs but have not yet given it a thorough look. It's > intimidating that it is 400 lines for character replacement, since its > purpose is to pass every request nearly without modification to the > underlying fs. > > -- > Tom Lieber > http://AllTom.com/ > -- Christopher Nielsen "They who can give up essential liberty for temporary safety, deserve neither liberty nor safety." --Benjamin Franklin