[4118] in arla-drinkers
Re: arla-0.90 on NetBSD 3.x,
daemon@ATHENA.MIT.EDU (Tomas Olsson)
Thu Jan 11 14:06:09 2007
From arla-drinkers-bounces@stacken.kth.se Thu Jan 11 19:06:09 2007
Return-Path: <arla-drinkers-bounces@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 3046 invoked from network); 11 Jan 2007 19:06:08 -0000
Received: from mx1.kth.se (130.237.32.140)
by charon.mit.edu with SMTP; 11 Jan 2007 19:06:08 -0000
Received: from localhost (localhost.localdomain [127.0.0.1])
by mx1.kth.se (Postfix) with ESMTP id AF28E1407D0;
Thu, 11 Jan 2007 20:06:07 +0100 (CET)
Received: from mx1.kth.se ([127.0.0.1])
by localhost (mx1.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP
id 18515-02-40; Thu, 11 Jan 2007 20:06:05 +0100 (CET)
Received: from tapas.stacken.kth.se (tapas.stacken.kth.se [130.237.234.140])
by mx1.kth.se (Postfix) with ESMTP id 16472140648;
Thu, 11 Jan 2007 20:06:03 +0100 (CET)
Received: from tapas.stacken.kth.se (localhost [127.0.0.1])
by tapas.stacken.kth.se (Postfix) with ESMTP id ABDDA534FC;
Thu, 11 Jan 2007 20:06:02 +0100 (CET)
X-Original-To: arla-drinkers@tapas.stacken.kth.se
Delivered-To: arla-drinkers@tapas.stacken.kth.se
Received: from brev.stacken.kth.se (brev.stacken.kth.se [130.237.234.84])
by tapas.stacken.kth.se (Postfix) with ESMTP id 993F8534FC
for <arla-drinkers@tapas.stacken.kth.se>;
Thu, 11 Jan 2007 20:06:00 +0100 (CET)
Received: from mx1.kth.se (mx1.kth.se [130.237.32.140])
by brev.stacken.kth.se (8.12.10/8.12.10) with ESMTP id l0BJ5xN6012206
for <arla-drinkers@stacken.kth.se>;
Thu, 11 Jan 2007 20:06:00 +0100 (MET)
Received: from localhost (localhost.localdomain [127.0.0.1])
by mx1.kth.se (Postfix) with ESMTP id BF2F314081E
for <arla-drinkers@stacken.kth.se>;
Thu, 11 Jan 2007 20:05:59 +0100 (CET)
Received: from mx1.kth.se ([127.0.0.1])
by localhost (mx1.kth.se [127.0.0.1]) (amavisd-new,
port 10024) with LMTP
id 18414-03-22; Thu, 11 Jan 2007 20:05:48 +0100 (CET)
Received: from kashyyyk.ite.kth.se (kashyyyk.ite.kth.se [130.237.31.35])
by mx1.kth.se (Postfix) with ESMTP id 2332E140768;
Thu, 11 Jan 2007 20:05:48 +0100 (CET)
Received: by kashyyyk.ite.kth.se (Postfix, from userid 18404)
id 16A4F96013B; Thu, 11 Jan 2007 20:05:48 +0100 (CET)
From: Tomas Olsson <tol@stacken.kth.se>
To: "Jonathan A. Kollasch" <jakllsch@kollasch.net>
Subject: Re: arla-0.90 on NetBSD 3.x,
small syntax fix and what will need to be done
References: <20070111172635.GA5297@kirkkit.kollasch.net>
Date: 11 Jan 2007 20:05:47 +0100
In-Reply-To: <20070111172635.GA5297@kirkkit.kollasch.net>
Message-ID: <lsrejq1jsdw.fsf@kashyyyk.ite.kth.se>
Lines: 40
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3
MIME-Version: 1.0
X-Virus-Scanned: by amavisd-new at kth.se
X-Spam-Status: No, hits=-4.9 tagged_above=-200.0 required=5.0 tests=BAYES_00
X-Spam-Level:
Cc: arla-drinkers@stacken.kth.se
X-BeenThere: arla-drinkers@stacken.kth.se
X-Mailman-Version: 2.1.6
Precedence: list
List-Id: Arla discussions <arla-drinkers.stacken.kth.se>
List-Unsubscribe: <https://lists.stacken.kth.se/mailman/listinfo/arla-drinkers>,
<mailto:arla-drinkers-request@stacken.kth.se?subject=unsubscribe>
List-Archive: <http://lists.stacken.kth.se/pipermail/arla-drinkers>
List-Post: <mailto:arla-drinkers@stacken.kth.se>
List-Help: <mailto:arla-drinkers-request@stacken.kth.se?subject=help>
List-Subscribe: <https://lists.stacken.kth.se/mailman/listinfo/arla-drinkers>,
<mailto:arla-drinkers-request@stacken.kth.se?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: arla-drinkers-bounces@stacken.kth.se
Errors-To: arla-drinkers-bounces@stacken.kth.se
X-Virus-Scanned: by amavisd-new at kth.se
"Jonathan A. Kollasch" <jakllsch@kollasch.net> writes:
> there is a missing ")" before the ";".
>
Thanks, fixed.
> After fixing that, it will successfully build on NetBSD 3.0.1, but the modload
> finds undefined symbols, nnpfs_dev_msleep, nnpfs_getpages, nnpfs_putpages.
>
> I tried implementing these, and succeeded in getting everything going,
> but the data of files in AFS was totally corrupt, so I'm betting I did
> something wrong. :]
>
The main problem (which keeps Open and FreeBSD from working as well) has to
do with how nnpfs opens the cache files containing block data. In the
olden days, we'd get the vnode when arlad notified nnpfs of the data's
existence, using arlad's context. The vnode could then be used during the
users's syscalls -- very handy.
Now we felt that given the potentially very large number of blocks known to
nnpfs, we shouldn't hold on to vnodes for all of them. Which means we need
to look up and open the block vnode from the user thread on demand. For
some reason one can still use arlad's context to begin the lookup from the
cache dir (where arlad is chrooted) on MacOS without running into the
locking issues all the other BSD's have. Most often one could just use the
first block of each file as we used the cache file before, but for
subsequent blocks it gets more complicated. Perhaps we could open the
vnode for the dir where all blocks are found whenever a file is opened, and
then keep it for doing block lookup/open for subsequent accesses to that
file.
Anyway, one needs to do some major surgery before the block cache can work
on NetBSD etc. Feel free to try (I don't think it's undoable) or just
discuss it with us. It's appreciated.
> however, for the (get|put)pages, I basically modified what
>
We've used genfs_{get,put}pages for a while, any chance that will still do?
thanks
/t
_______________________________________________
Arla-drinkers mailing list
Arla-drinkers@stacken.kth.se
https://lists.stacken.kth.se/mailman/listinfo/arla-drinkers