9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] (no subject)
  2003-02-24 16:52 [9fans] (no subject) Steve Simon
@ 2003-02-24 16:06 ` Wayne Walker
  2003-02-24 17:18   ` William Josephson
  2003-02-24 17:38 ` [9fans] file systems Russ Cox
  2003-02-24 19:37 ` [9fans] (no subject) northern snowfall
  2 siblings, 1 reply; 8+ messages in thread
From: Wayne Walker @ 2003-02-24 16:06 UTC (permalink / raw)
  To: 9fans; +Cc: 9fans

If you plan on wirting a "unix-ish" file system, I think the SysV /
Coherent  fs was fairly simple (as simple as inode/superblock/indirect
block fs's go).  I've not looked at the actual linux or *BSD code for
that, though.

If you are looking for much simpler file system stuff, the romfs driver
in linux should be farily small and clean.

I cd'd into /usr/src/linux/fs and it looks like I'm right romfs and
ramfs are both tiny.  sysv and minix are the simplest "unixish" fs's (by
code size).

[wwalker@nomad fs]$ du -ks * | sort -n -r | grep -v '\.c$'
3220    nls
908     jfs
740     reiserfs
588     hfs
512     intermezzo
344     udf
340     jffs2
296     ntfs
268     ext3
264     nfs
220     partitions
216     jbd
212     nfsd
200     jffs
200     hpfs
184     smbfs
176     ufs
168     lockd
168     ext2
156     umsdos
156     ncpfs
152     befs
144     devfs
136     proc
128     coda
116     freevxfs
116     affs
108     fat
104     sysv
104     isofs
84      adfs
72      minix
68      autofs
64      autofs4
56      qnx4
44      vfat
44      efs
36      openpromfs
36      bfs
32      cramfs
28      msdos
24      romfs
24      devpts
16      ramfs
8       Config.in
8       ChangeLog
4       Makefile

On Mon, Feb 24, 2003 at 04:52:02PM +0000, Steve Simon wrote:
> Hi,
>
> Any advice on the "best" (I guess I mean simple and clean)
> filesystem to look at as I try once again to teach
> myself to write fileservers?
>
> -Steve

--

Wayne Walker

www.broadq.com :)  Bringing digital video and audio to the living room


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [9fans] (no subject)
@ 2003-02-24 16:52 Steve Simon
  2003-02-24 16:06 ` Wayne Walker
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Steve Simon @ 2003-02-24 16:52 UTC (permalink / raw)
  To: 9fans

Hi,

Any advice on the "best" (I guess I mean simple and clean)
filesystem to look at as I try once again to teach
myself to write fileservers?

-Steve


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] (no subject)
  2003-02-24 16:06 ` Wayne Walker
@ 2003-02-24 17:18   ` William Josephson
  0 siblings, 0 replies; 8+ messages in thread
From: William Josephson @ 2003-02-24 17:18 UTC (permalink / raw)
  To: 9fans

On Mon, Feb 24, 2003 at 10:06:37AM -0600, Wayne Walker wrote:
> If you plan on wirting a "unix-ish" file system, I think the SysV /
> Coherent  fs was fairly simple (as simple as inode/superblock/indirect
> block fs's go).  I've not looked at the actual linux or *BSD code for
> that, though.

If you're actually looking for an on-disk filesystem,
kfs or FreeBSD's FFS are probably good places to start.
I have read-only FFS+buffer cache for plan 9 lying
around here somewhere which I suppose I should finish;
it already serves its purpose for doing physical backup
a la Russ's "trimfat" for FAT filesystems, though.

But I suspect you are looking for a Plan 9 filesystem, so
something like ramfs, webfs, or nntpfs might be better
places to start.  Lib9p is also worth poking at, IMO.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] file systems
  2003-02-24 16:52 [9fans] (no subject) Steve Simon
  2003-02-24 16:06 ` Wayne Walker
@ 2003-02-24 17:38 ` Russ Cox
  2003-02-24 19:37 ` [9fans] (no subject) northern snowfall
  2 siblings, 0 replies; 8+ messages in thread
From: Russ Cox @ 2003-02-24 17:38 UTC (permalink / raw)
  To: 9fans

the EXAMPLES section of 9p(2) gives some suggestions.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] (no subject)
  2003-02-24 16:52 [9fans] (no subject) Steve Simon
  2003-02-24 16:06 ` Wayne Walker
  2003-02-24 17:38 ` [9fans] file systems Russ Cox
@ 2003-02-24 19:37 ` northern snowfall
  2 siblings, 0 replies; 8+ messages in thread
From: northern snowfall @ 2003-02-24 19:37 UTC (permalink / raw)
  To: steve.simon; +Cc: 9fans

RamFS is a nice clean and simple start.
Don




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] file systems
  2003-02-24 19:29 [9fans] file systems Joel Salomon
  2003-02-24 19:33 ` Fco.J.Ballesteros
@ 2003-02-24 21:28 ` Geoff Collyer
  1 sibling, 0 replies; 8+ messages in thread
From: Geoff Collyer @ 2003-02-24 21:28 UTC (permalink / raw)
  To: 9fans

`The Plan 9 File Server' (in /sys/doc/fs) describes how the pre-fossil
standalone file server stores data on disks.  kfs is a slight variant
of the non-cached-worm file system.  The main change I noticed when
adapting a private copy of kfs to read standalone file systems was
that struct Superb swaps the order of its members, a Super1 and an
Fbuf, to permit the size of the free list in Fbuf to vary with block
size, which can be chosen at run-time in kfs, but which is fixed at
compile-time in the standalone file server.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] file systems
  2003-02-24 19:29 [9fans] file systems Joel Salomon
@ 2003-02-24 19:33 ` Fco.J.Ballesteros
  2003-02-24 21:28 ` Geoff Collyer
  1 sibling, 0 replies; 8+ messages in thread
From: Fco.J.Ballesteros @ 2003-02-24 19:33 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 189 bytes --]

/sys/src/cmd/disk/kfs/portdat.h has the data structures.
Look for `don't touch, this is the disk structure' warnings.

You could also follow the trace resulting from a check call.

hth

[-- Attachment #2: Type: message/rfc822, Size: 1481 bytes --]

From: Joel Salomon <salomo3@cooper.edu>
To: 9fans@cse.psu.edu
Subject: [9fans] file systems
Date: Mon, 24 Feb 2003 14:29:16 -0500 (EST)
Message-ID: <Pine.SOL.3.96.1030224142637.17571B-100000@robin.cooper.edu>

> as simple as inode/superblock/indirect block fs's go
Speaking of which, how do I find out how the kfs is laid
out on disk?

--Joel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [9fans] file systems
@ 2003-02-24 19:29 Joel Salomon
  2003-02-24 19:33 ` Fco.J.Ballesteros
  2003-02-24 21:28 ` Geoff Collyer
  0 siblings, 2 replies; 8+ messages in thread
From: Joel Salomon @ 2003-02-24 19:29 UTC (permalink / raw)
  To: 9fans

> as simple as inode/superblock/indirect block fs's go
Speaking of which, how do I find out how the kfs is laid
out on disk?

--Joel



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-02-24 21:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-24 16:52 [9fans] (no subject) Steve Simon
2003-02-24 16:06 ` Wayne Walker
2003-02-24 17:18   ` William Josephson
2003-02-24 17:38 ` [9fans] file systems Russ Cox
2003-02-24 19:37 ` [9fans] (no subject) northern snowfall
2003-02-24 19:29 [9fans] file systems Joel Salomon
2003-02-24 19:33 ` Fco.J.Ballesteros
2003-02-24 21:28 ` Geoff Collyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).