All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] rbd: cleanups related to argument parsing
@ 2012-02-29  3:56 Alex Elder
  2012-02-29  3:59 ` [PATCH 1/5] rbd: encapsulate argument parsing for rbd_add() Alex Elder
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Alex Elder @ 2012-02-29  3:56 UTC (permalink / raw)
  To: ceph-devel

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-03-02 21:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-29  3:56 [PATCH 0/5] rbd: cleanups related to argument parsing Alex Elder
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

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.