2002-10-03 00:31:29

by Linus Torvalds

[permalink] [raw]
Subject: Re: [PATCH] AFS filesystem for Linux (2/2)


On Wed, 2 Oct 2002, David Howells wrote:
>
> This patch adds an Andrew File System (AFS) driver to the kernel. Currently
> it only provides read-only, uncached, non-automounted and unsecured support.

Are you sure this is the right way to go?

As far as I can tell, this is a dead end, because we fundamentally cannot
do the local backing store from the kernel.

>From my (nonexistent) understanding of how AFS works, would it not be a
whole lot more sensible to implement it as a coda client or something like
that (with the networking support in-kernel, but with the caching logic
etc in user space).

I dunno, I just get the feeling that a good AFS client simply cannot be
done entirely in kernel space, and if you start off like this, you'll
never get where you really want to go. Pls comment on this (and yeah, the
comment can be a "Boy, you're really a stupid git, and here's why: xyz",
but I really want the "xyz" part too ;)

Now, admittedly maybe the user-space deamon approach is crap, and what we
really want is to have some way to cache network stuff on the disk
directly from the kernel, ie just implement a real mapping/page-indexed
cachefs that people could mount and use together with different network
filesystems.

Linus


2002-10-04 14:06:41

by Patrick Audley

[permalink] [raw]
Subject: Re: [patch] [kkern] AFS filesystem for Linux (2/2)


Linus> Now, admittedly maybe the user-space deamon approach is
Linus> crap, and what we really want is to have some way to cache
Linus> network stuff on the disk directly from the kernel, ie just
Linus> implement a real mapping/page-indexed cachefs that people
Linus> could mount and use together with different network
Linus> filesystems.

Cachefs has been on our most wanted list for a while now in Linux
biocomputing.. Using NFS for huge datasets with cachefs on Solaris is
a breeze and Linux currently offers no alternative
(well... coda/intermezzo are close but no close enough). A general
purpose cachefs would be beautiful.

Patrick Audley


--
`Every program attempts to expand until it can read mail. Those programs
which cannot so expand are replaced by ones which can.''
- The Law of Software Development
...
Patrick Audley [email protected]
Computational Biology http://www.compbio.dundee.ac.uk
University of Dundee http://blackcat.ca
Dundee, Scotland +44 1382 348721