]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: prevent overflow of discard API result code 19058/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 15 Nov 2017 14:09:15 +0000 (09:09 -0500)
committerShinobu Kinjo <shinobu@redhat.com>
Mon, 20 Nov 2017 22:16:01 +0000 (07:16 +0900)
commit818c354a43ca83be10daa1f0cd251635b57371b9
treecd02985409c625f917b8ddaf633972e65ba06c82
parent628e76fe2a939aae4996f43e9e9c9f7d1269e0bb
librbd: prevent overflow of discard API result code

Prevent discard/writesame lengths larger than 2GB.

Fixes: http://tracker.ceph.com/issues/21966
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 3effd324db181e625665be33b5c6529dca723cc5)

Conflicts:
PendingReleaseNotes
src/librbd/librbd.cc: i chosed to pick code from 3effd32 in order to prevent discard/writesame against lengths larger than 2GB. `len` used in picked code was already in luminous. so it's safe to pick.
PendingReleaseNotes
src/librbd/librbd.cc