All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pete Zaitcev <zaitcev@redhat.com>
To: Jeff Garzik <jeff@garzik.org>
Cc: Project Hail List <hail-devel@vger.kernel.org>
Subject: [Patch 2/3] tabled: use correct name for zone attribute
Date: Fri, 28 Aug 2009 20:42:00 -0600	[thread overview]
Message-ID: <20090828204200.42f2d7fe@redhat.com> (raw)

We're such a young project and we have legacy arrangements already.
In particular what's used to be called a "building" is now a "zone",
for the benefit of users running their clouds out of missile silos,
huts, tents, vehicles, etc.

Jokes aside, the patch makes tabled to use the correct name that
corresponds to what Chunk publishes.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>

diff --git a/server/storparse.c b/server/storparse.c
index eb40dcd..c5dd3b1 100644
--- a/server/storparse.c
+++ b/server/storparse.c
@@ -214,7 +214,7 @@ static void cfg_elm_end (GMarkupParseContext *context,
 		cc->text = NULL;
 	}
 
-	else if (!strcmp(element_name, "Zone")) {
+	else if (!strcmp(element_name, "Building")) {
 		if (!cc->text)
 			return;
 		if (cc->text[0] == '-')
@@ -225,7 +225,7 @@ static void cfg_elm_end (GMarkupParseContext *context,
 			cc->loc.zone = cc->text;
 		} else {
 			applog(LOG_WARNING,
-			       "%s: Zone not in Geo", cc->fname);
+			       "%s: Building not in Geo", cc->fname);
 			free(cc->text);
 		}
 		cc->text = NULL;

                 reply	other threads:[~2009-08-29  2:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20090828204200.42f2d7fe@redhat.com \
    --to=zaitcev@redhat.com \
    --cc=hail-devel@vger.kernel.org \
    --cc=jeff@garzik.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.