9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Russ Cox" <rsc@swtch.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu>
Subject: Re: [9fans] Plan 9 wiping itself?
Date: Tue, 27 Nov 2007 23:21:30 -0500	[thread overview]
Message-ID: <ee9e417a0711272021h24197b7cma2dca5938fccaa26@mail.gmail.com> (raw)
In-Reply-To: <5d375e920711241043i4a838fcm7fb52c104b05a94d@mail.gmail.com>

On Nov 24, 2007 1:43 PM, Uriel <uriel99@gmail.com> wrote:
> Somebody was asking why replica sucks?

It's a bug in a shell script, which caused sources to look like
some files went away and then got recreated.   This happens
occasionally if the replica update programs that run at Bell Labs
get interrupted or the sources disk fills.  It doesn't cause data loss,
scary though it may look.

In this case, replica actually recreates all the files it deletes,
and it refuses to delete any file that had been locally modified,
so no information would have been lost.  (I tested this earlier
today on my own system.)

I assume that your vague references to replica destroying people's
systems is in fact referring to earlier times that this kind of sequence
has happened.  Again, replica won't touch any file that it didn't create
and it also won't delete any file that has been changed since replica
put it there.  I really don't expect very much of you, Uriel, but I didn't
expect FUDmongering.

For what it's worth, I made some changes to pull today to
eliminate spurious warnings about "locally modified" files in the
case where the local file and the sources copy are identical.
This avoids conflicts in the common case where one does

   9fs sources
   cp /n/sources/plan9/some/file /some/file

and then later run "pull" to update your system.  It also avoids
conflicts in the common case where you make a local change,
submit a patch, the patch gets installed, and then pull wants to
propagate your change back down from sources to your local machine.

I also changed pull to ignore deletions if the supposedly-deleted
file has been recreated.  This will make pull skip over a sequence of
"delete then recreate" entries in the log.

Russ


  reply	other threads:[~2007-11-28  4:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-23 23:29 Pietro Gagliardi
2007-11-24 17:44 ` Antonin Vecera
2007-11-24 17:46   ` Pietro Gagliardi
2007-11-24 18:43     ` Uriel
2007-11-28  4:21       ` Russ Cox [this message]
2007-11-28  7:43         ` sqweek
2007-11-28 14:35           ` Russ Cox
2007-11-28 16:29             ` Douglas A. Gwyn
2007-11-30  4:58               ` sqweek
2007-11-24 20:59     ` erik quanstrom

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=ee9e417a0711272021h24197b7cma2dca5938fccaa26@mail.gmail.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).