]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: support compression allocation hints to the OSD
authorJason Dillaman <dillaman@redhat.com>
Thu, 16 Jan 2020 19:53:37 +0000 (14:53 -0500)
committerNathan Cutler <ncutler@suse.com>
Fri, 24 Jan 2020 16:18:14 +0000 (17:18 +0100)
commit61be332cdf9e1269e049294e4cd640e5d28baf2f
treecabcb4e78e8d7bb74b682b28d177506d7dce8dfe
parentb3d662aad44afaebb123540bd2b5ed93199910ec
librbd: support compression allocation hints to the OSD

A new "rbd_compression_hint" configuration option can be applied
globally, at the pool level, or to individual images to send
the associated compression allocation hint to the OSD on write
operations.

Fixes: https://tracker.ceph.com/issues/42097
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 200fc5b2f24859109a79002e30927d457971b939)
src/common/options.cc
src/librbd/ImageCtx.cc
src/librbd/ImageCtx.h
src/librbd/io/ObjectRequest.cc
src/test/librados_test_stub/LibradosTestStub.cc
src/test/librados_test_stub/TestIoCtxImpl.cc
src/test/librados_test_stub/TestIoCtxImpl.h
src/test/librados_test_stub/TestMemIoCtxImpl.cc
src/test/librados_test_stub/TestMemIoCtxImpl.h
src/test/librbd/mock/MockImageCtx.h