From: Jason Dillaman Date: Thu, 14 Feb 2019 14:53:34 +0000 (-0500) Subject: librbd: align discard requests to default bluestore allocation size X-Git-Tag: v14.1.1~122^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7ca1bab90f3db3aaaa4cdbfc1f18e9f5cfbf5568;p=ceph.git librbd: align discard requests to default bluestore allocation size This will match the new krbd behavior of aligning discards to the default bluestore minimum allocation size. Requests that are too small (or the misaligned head / tail of the request) will be ignored since it will not result in freed space. Fixes: http://tracker.ceph.com/issues/38146 Signed-off-by: Jason Dillaman --- diff --git a/src/common/options.cc b/src/common/options.cc index e5752c2a2f0e..d7140d76b112 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -7074,6 +7074,22 @@ static std::vector