Skip to content

rbd: existence check or layered writes

Alex Elder ceph-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7libceph: kill off osd data write_request parametersdrivers/block/rbd.c fs/ceph/addr.c fs/ceph/file.c +2 more+2 -20 replies
2/7libceph: clean up osd data field access functionsnet/ceph/osd_client.c+0 -00 replies
3/7libceph: support raw data requestsinclude/linux/ceph/osd_client.h net/ceph/osd_client.c+1 -00 replies
4/7rbd: adjust image object request ref countingdrivers/block/rbd.c+0 -00 replies
5/7rbd: always check IMG_DATA flagdrivers/block/rbd.c+14 -150 replies
6/7rbd: add target object existence flagsdrivers/block/rbd.c+2 -00 replies
7/7rbd: issue stat request before layered writedrivers/block/rbd.c+25 -32 replies

Reviews trailers per patch

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

PatchJosh Durgin
SeriesR-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7

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/7] rbd: existence check or layered writes

I've broken these patches into three groups.

The first two are sort of cleanup from prior patches.

The next one adds support for simple ops that contain a single data item, which I've termed "raw data."

The next two are some more refinements but they were done intentionally to prepare for the last one.

The sixth puts in place flags on object requests that allow the last patch to determine whether it needs to issue a STAT call for a target object before doing a layered write request.

The layered write request ends up being fairly simple. Existence flags are recorded for the target of object requests. If it is unknown whether the object exists, a new standalone object request is created to do a STAT on the object. The result (success or ENOENT) is recorded in a flag in the original request,
at which point the original request is re-submitted.

This is the first step in doing layered writes.

-Alex

[PATCH 1/7] libceph: kill off osd data write_request parameters [PATCH 2/7] libceph: clean up osd data field access functions

[PATCH 3/7] libceph: support raw data requests

[PATCH 4/7] rbd: adjust image object request ref counting [PATCH 5/7] rbd: always check IMG_DATA flag

[PATCH 6/7] rbd: add target object existence flags [PATCH 7/7] rbd: issue stat request before layered write