9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Russ Cox" <rsc@swtch.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] changing file ownership with fossil?
Date: Wed, 15 Oct 2003 10:25:17 -0400	[thread overview]
Message-ID: <E1A9maZ-0005hb-QH@t40.swtch.com> (raw)
In-Reply-To: Your message of "Wed, 15 Oct 2003 06:43:01 BST." <ed9324b151a4fed195ec01bcfa859a6a@caldo.demon.co.uk>

> i was also trying to decide whether the database
> was really needed.

without the database you only have two pieces
of information per file -- the mtime/length on the
local system and the mtime/length on the remote system.
a comparison between these two can only have two
outcomes, whereas there are three outcomes in the current
system:

	- file is outdated, needs updating
	- file is fine, no updating
	- file is outdated but locally changed, warn user

by storing a complete history of files given out
on the server, you could avoid storing the local
information, but that requires the server knowing
more about its clients than it currently does.
right now the per-client data is all on the clients,
and the server is "stateless" as it were.
(the database on the server could be
removed if you redefine mtime on directories
properly.)



      reply	other threads:[~2003-10-15 14:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-14  0:19 Tim Fraser
2003-10-14  2:24 ` jmk
2003-10-15  2:36   ` Tim Fraser
2003-10-15  3:09     ` Russ Cox
2003-10-15  5:43     ` Charles Forsyth
2003-10-15 14:25       ` Russ Cox [this message]

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=E1A9maZ-0005hb-QH@t40.swtch.com \
    --to=rsc@swtch.com \
    --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).