Skip to content

rbd: cleanups related to argument parsing

Alex Elder ceph-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5rbd: encapsulate argument parsing for rbd_add()drivers/block/rbd.c+42 -260 replies
2/5rbd: don't use sscanf() in rbd_add_parse_args()drivers/block/rbd.c+85 -140 replies
3/5rbd: do a few checks at build timedrivers/block/rbd.c+12 -30 replies
4/5rbd: have rbd_parse_args() report found mon_addrs sizedrivers/block/rbd.c+13 -70 replies
5/5rbd: don't allocate mon_addrs buffer in rbd_add()drivers/block/rbd.c+9 -120 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSage Weil
SeriesR-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] rbd: cleanups related to argument parsing

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