9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: matt <mattmobile@proweb.co.uk>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] synthetic filesystems and changing data
Date: Fri, 10 Aug 2007 07:49:17 +0100	[thread overview]
Message-ID: <46BC0A6D.9060404@proweb.co.uk> (raw)
In-Reply-To: <46BBC396.9040009@ec.gc.ca>

The coder for the file system makes the choice whether to keep a 
snapshot of the data to be read per FID, this way the FID reader will 
always get the file they asked for, which, after the first read, isn't 
necessarily the current version or to just return whatever each Tread 
asks for regardless of whether the underlying data has changed.

It is akin to an SQL cursor. When I make an SQL request the rows 
returned are a snapshot of the data when the query was made. If I read 
them at one row per second there's a chance that the actual data in the 
datastore changes between reads.

Either way there's a "tough luck" aspect, if you have a solution I'm 
sure everyone would be delighted to hear it :)

It's a perinnial problem. When opening a file for writing some programs 
(acme for instance) will warn you if the file has changed since you 
opened it. That's a solution to the same problem.

Matt


  parent reply	other threads:[~2007-08-10  6:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-10  1:47 John Marshall
2007-08-10  1:57 ` erik quanstrom
2007-08-10  8:13   ` Charles Forsyth
2007-08-10  9:40     ` maht
2007-08-10  6:49 ` matt [this message]
2007-08-10 12:32   ` John Marshall
2007-08-10 15:13     ` Kris Maglione
2007-08-10 15:47       ` nemo

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=46BC0A6D.9060404@proweb.co.uk \
    --to=mattmobile@proweb.co.uk \
    --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).