Skip to content

rbd: updates and enhancements

Alex Elder ceph-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 37 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16libceph: fix off-by-one bug in ceph_encode_filepath()include/linux/ceph/decode.h+0 -02 replies
2/16rbd: drop a useless local variabledrivers/block/rbd.c+0 -02 replies
3/16libceph: define ceph_decode_string()include/linux/ceph/decode.h+0 -04 replies
4/16libceph: define ceph_extract_encoded_string()include/linux/ceph/decode.h+0 -010 replies
5/16rbd: define dup_token()drivers/block/rbd.c+36 -03 replies
6/16rbd: rename rbd_dev->block_namedrivers/block/rbd.c+1 -13 replies
7/16rbd: dynamically allocate object prefixdrivers/block/rbd.c+1 -14 replies
8/16rbd: don't store pool name in struct rbd_devdrivers/block/rbd.c+3 -512 replies
9/16rbd: dynamically allocate image header namedrivers/block/rbd.c+1 -21 reply
10/16rbd: dynamically allocate image namedrivers/block/rbd.c drivers/block/rbd_types.h+2 -33 replies
11/16rbd: dynamically allocate snapshot namedrivers/block/rbd.c+1 -11 reply
12/16rbd: use rbd_dev consistentlydrivers/block/rbd.c+0 -01 reply
13/16rbd: rename some fields in struct rbd_devdrivers/block/rbd.c+3 -32 replies
14/16rbd: more symbol renamesdrivers/block/rbd.c+7 -62 replies
15/16rbd: option symbol renamesdrivers/block/rbd.c+0 -01 reply
16/16rbd: kill num_reply parametersdrivers/block/rbd.c+1 -71 reply

Reviews trailers per patch

12 of 16 patches have a Reviewed-by or Acked-by.

PatchYehuda SadehJosh Durgin
1/16R-b R-b
2/16R-b R-b
3/16R-b R-b
4/16
5/16R-b R-b
6/16R-b R-b
7/16R-b
8/16R-b
9/16R-b
10/16R-b
11/16R-b
12/16R-b
13/16
14/16
15/16
16/16R-b

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 00/16] rbd: updates and enhancements

The following series of patches constitute a few minor fixes and cleanups, as well as some new utility routines in the rbd code. Some of these comprise a foundation that's being used to add support for the "new" rbd image format.

We've agreed to refer to the "old" and "new" formats as format 1 and 2, respectively.

-Alex

[PATCH 01/16] libceph: fix off-by-one bug in ceph_encode_filepath()
This is a minor bug fix.

[PATCH 02/16] rbd: drop a useless local variable
This is a minor cleanup.

[PATCH 03/16] libceph: define ceph_decode_string() [PATCH 04/16] libceph: define ceph_extract_encoded_string() [PATCH 05/16] rbd: define dup_token()
Each of these defines a new utility routine. They are all going to be used in some upcoming rbd patches, but they're ready for review now.

[PATCH 06/16] rbd: rename rbd_dev->block_name
[PATCH 07/16] rbd: dynamically allocate object prefix
These update the "block_name" field of a rbd_dev structure to be named "object_prefix", which is consistent with the way the new rbd format describes it. It also removes the unnecessary fixed limit on the length of that string.

[PATCH 08/16] rbd: don't store pool name in struct rbd_dev
Since a pool name can change, this patch makes sure the rbd client code doesn't save a copy of it--relying instead on the invariant pool id. The "pool" entry has been replaced by "pool_id" in /sys/bus/rbd/<N>.

[PATCH 09/16] rbd: dynamically allocate image header name [PATCH 10/16] rbd: dynamically allocate image name [PATCH 11/16] rbd: dynamically allocate snapshot name
These three change some more fields for in-core data structures so they aren't arbitrarily limited to a fixed size.

[PATCH 12/16] rbd: use rbd_dev consistently
This makes all variables representing a struct rbd_device be named "rbd_dev".

[PATCH 13/16] rbd: rename some fields in struct rbd_dev [PATCH 14/16] rbd: more symbol renames
[PATCH 15/16] rbd: option symbol renames
These change the names of some fields and symbols so they are (hopefully) a bit more descriptive.

[PATCH 16/16] rbd: kill num_reply parameters
This eliminates an unused parameter that was defined in a number of functions.