Skip to content

rbd: thick-provision image support

KAMEI Hitoshi ceph-devel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2rbd: RBD_DEV_FLAG_THICK rbd_dev_flags bitdrivers/block/rbd.c+38 -07 replies
2/2rbd: add 'thick' sysfs rbd device attributeDocumentation/ABI/testing/sysfs-bus-rbd+6 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] rbd: thick-provision image support

This patch series adds the thick-provision image support to /drivers/block/rbd.c relating to https://github.com/ceph/ceph/pull/18317.
The rbd will not issue the discard operation to thick-provision images, if applied.

The rbd should not discard any allocated blocks of thick-provision image to ensure writing data to rbd images. So this patch prevents from discarding allocated blocks on thick-provision image.

This patch series creates sysfs file to manipulate thick-provision status. If users write "1" to /sys/bus/rbd/devices/<dev-id>/thick, then the image is changed to thick-provision image. And if users write "0" to it, then the image is changed to thin-provision image. I will add the code changing status for the rbd map command.

Hitoshi Kamei (2):
rbd: RBD_DEV_FLAG_THICK rbd_dev_flags bit
rbd: add 'thick' sysfs rbd device attribute

 Documentation/ABI/testing/sysfs-bus-rbd |  6 ++++++
 drivers/block/rbd.c                     | 37 +++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+)
Signature · 1 line
2.15.1