Skip to content

rbd: old patches from Josh

Alex Elder ceph-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6rbd: return errors for mapped but deleted snapshotdrivers/block/rbd.c+5 -10 replies
2/6rbd: only reset capacity when pointing to headdrivers/block/rbd.c+0 -00 replies
3/6rbd: expose the correct size of the device in sysfsdrivers/block/rbd.c+0 -00 replies
4/6rbd: set image size when header is updateddrivers/block/rbd.c+0 -00 replies
5/6rbd: use reference counting for the snap contextdrivers/block/rbd.c+0 -00 replies
6/6rbd: send header version when notifyingdrivers/block/rbd.c+0 -00 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchAlex Elder
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-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 0/6] rbd: old patches from Josh

Late last year Josh Durgin had put together a series of fixes for rbd that never got committed. I told him I would get them in, and this series represents the last six that remain.

Here's a summary:
[PATCH 1/6] rbd: return errors for mapped but deleted snapshot
This adds code to distinguish the result of attempting to read data from a deleted snapshot from the the result of reading a hole in a snapshot. The former now produces ENXIO.
[PATCH 2/6] rbd: only reset capacity when pointing to head
When an rbd header is refreshed, its capacity is set in case it has been changed. This should not happen for mapped snapshots.
[PATCH 3/6] rbd: expose the correct size of the device in sysfs
An rbd_dev--even one mapping a snashot--holds the size of it's base image in its header's image_size field. The sysfs entry for the snapshot size was showing the wrong value.
[PATCH 4/6] rbd: set image size when header is updated
The rbd image size was not getting updated when a header was refrehsed.
[PATCH 5/6] rbd: use reference counting for the snap context
This makes sure the rbd code takes a reference to its snapshot context while a request related to that context is underway.
[PATCH 6/6] rbd: send header version when notifying
This ensures the version that gets sent back on a watch notify acknowledgement is the one that got read as a result of refreshing the header.

I've reviewed them all, but am posting them for a chance for others to comment before I commit them.

-Alex