9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Douglas A. Gwyn" <DAGwyn@null.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Persistent cache for cfs
Date: Fri, 18 May 2001 08:35:41 +0000	[thread overview]
Message-ID: <3B042432.691F18B8@null.net> (raw)
In-Reply-To: <9dshfp$3cu$1@cantaloupe.srv.cs.cmu.edu>

Matthew Weigel wrote:
> ... for special cases such as files that were edited both
> locally and on the fs while the client was disconnected could be
> presented as file.kfs-<modification-date> and
> file.fs-<modification-date>, so that the user could see both and decide
> what to do.

More thought is needed before inventing warts like this.
This is just a concurrent-update issue, widely studied
already.  It may be that nothing special needs to be done
about such occurrences; the last writer wins.

It seems to me that the only thing distinguishing a stash
from a normal filesystem from the user perspective is
that files have a new two-valued attribute, "temporary"
or "permanent", which is honored by the caching scheme.
Behind the scenes there must also be a mechanism for
specifying how to construct the stash filesystem, but
that can be as simple as an init rc script containing
some "copy permanent files into place" instructions.
You probably want additional specification capability
for what the stash needs to do when a nonexistent file
is accessed and also when the cache is full.  Also
what to do upon termination, again possibly an rc
script that copies out updated files.


  reply	other threads:[~2001-05-18  8:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-12 13:02 presotto
2001-05-12 17:35 ` Fariborz 'Skip' Tavakkolian
2001-05-16  8:43 ` Matthew Weigel
2001-05-18  8:35   ` Douglas A. Gwyn [this message]
2001-05-18 14:50     ` Douglas A. Gwyn
2001-05-21  8:39     ` Matthew Weigel
2001-05-21 14:26       ` Ronald G Minnich
  -- strict thread matches above, loose matches on Subject: below --
2001-05-12  4:26 Fariborz 'Skip' Tavakkolian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3B042432.691F18B8@null.net \
    --to=dagwyn@null.net \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).