9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] replica/applylog reports "a" for deletions
Date: Tue,  6 Jul 2010 06:28:17 -0400	[thread overview]
Message-ID: <dac01c188de7dd457a737af495ede558@kw.quanstro.net> (raw)
In-Reply-To: <6f2f9d16c4f7c17d01bdf4f389e164ea@isd.dp.ua>

> Is there a particular reason for replica/applylog to masquerade file
> deletions as additions?  Or that's just a typo?

i'm pretty sure this code does remove files.

		    DoRemove:
			USED(checkedmatch1);
			assert(ismatch(name));
			chat("a %q %luo %q %q %lud\n", name, rd.mode, rd.uid, rd.gid, rd.mtime);
			if(donothing)
				break;
>>			if(remove(local) < 0){
				error("removing %q: %r", name);
				skip = 1;
				continue;
			}

- erik



  reply	other threads:[~2010-07-06 10:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-06 10:21 yaroslav
2010-07-06 10:28 ` erik quanstrom [this message]
2010-07-06 10:41   ` yaroslav
2010-07-06 10:45     ` erik quanstrom
2010-07-06 10:58       ` yaroslav
2010-07-06 18:34         ` Yaroslav

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=dac01c188de7dd457a737af495ede558@kw.quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    /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).