All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jim Schutt" <jaschut@sandia.gov>
To: ceph-devel@vger.kernel.org
Cc: Jim Schutt <jaschut@sandia.gov>
Subject: [PATCH] crushtool: Add call to global_init() to avoid dout segfault
Date: Tue, 12 Jul 2011 16:20:59 -0600	[thread overview]
Message-ID: <1310509259-29635-1-git-send-email-jaschut@sandia.gov> (raw)


Signed-off-by: Jim Schutt <jaschut@sandia.gov>
---
 src/crushtool.cc |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/crushtool.cc b/src/crushtool.cc
index f2a35f9..336d456 100644
--- a/src/crushtool.cc
+++ b/src/crushtool.cc
@@ -845,6 +845,10 @@ int main(int argc, const char **argv)
   map<int, int> device_weight;
   DEFINE_CONF_VARS(usage);
 
+  global_init(args, CEPH_ENTITY_TYPE_CLIENT, CODE_ENVIRONMENT_UTILITY,
+	      CINIT_FLAG_NO_DEFAULT_CONFIG_FILE);
+  common_init_finish(g_ceph_context);
+
   FOR_EACH_ARG(args) {
     if (CEPH_ARGPARSE_EQ("clobber", '\0')) {
       clobber = true;
-- 
1.7.1



             reply	other threads:[~2011-07-12 22:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-12 22:20 Jim Schutt [this message]
2011-07-14  4:39 ` [PATCH] crushtool: Add call to global_init() to avoid dout segfault Sage Weil
2011-07-19 22:29   ` Colin Patrick McCabe

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=1310509259-29635-1-git-send-email-jaschut@sandia.gov \
    --to=jaschut@sandia.gov \
    --cc=ceph-devel@vger.kernel.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.