All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Elder <elder@dreamhost.com>
To: ceph-devel@vger.kernel.org
Subject: [PATCH 0/5] rbd: cleanups related to argument parsing
Date: Tue, 28 Feb 2012 19:56:26 -0800	[thread overview]
Message-ID: <4F4DA1EA.3080705@dreamhost.com> (raw)

This series affects the way arguments are parsed in rbd_add().
It first encapsulates the code into its own helper function.
Then it uses a few simple tokenization functions instead of
sscanf() to parse the string provided, which makes it possible
to do a better job of error checking the input.  It makes use
of the ability to check for certain invariants at build time
rather than runtime.  And by reworking what information gets
passed around, eliminates the need to allocate a buffer to
hold the monitor addresses.

					-Alex

             reply	other threads:[~2012-02-29  3:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-29  3:56 Alex Elder [this message]
2012-02-29  3:59 ` [PATCH 1/5] rbd: encapsulate argument parsing for rbd_add() Alex Elder
2012-02-29  3:59 ` [PATCH 2/5] rbd: don't use sscanf() in rbd_add_parse_args() Alex Elder
2012-02-29  3:59 ` [PATCH 3/5] rbd: do a few checks at build time Alex Elder
2012-02-29  3:59 ` [PATCH 4/5] rbd: have rbd_parse_args() report found mon_addrs size Alex Elder
2012-02-29  3:59 ` [PATCH 5/5] rbd: don't allocate mon_addrs buffer in rbd_add() Alex Elder
2012-03-02 21:28 ` [PATCH 0/5] rbd: cleanups related to argument parsing Sage Weil

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=4F4DA1EA.3080705@dreamhost.com \
    --to=elder@dreamhost.com \
    --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.