]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committerJason Dillaman <dillaman@redhat.com>
Thu, 16 Jan 2020 19:53:37 +0000 (14:53 -0500)
commit200fc5b2f24859109a79002e30927d457971b939
treedc072be2a5ea821107b04b73a73299c021df6373
parentedf25e01795b20d903f63b68666499a910a46fd1
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>
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