]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: prevent creation of v2 image ids that are too large 10987/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 5 Aug 2016 00:40:10 +0000 (20:40 -0400)
committerVicente Cheng <freeze.bilsted@gmail.com>
Tue, 15 Nov 2016 02:54:03 +0000 (10:54 +0800)
commit6c0b2b4ceba188397d5877a602b0e1996d29a4eb
treef495a5bc9b3aeb7e58ad802e4e9fc20963013ffa
parentf776699fd00ff5f0deea15ec4f2efb991831b055
librbd: prevent creation of v2 image ids that are too large

The librbd API is capped at 24 characters for expressing the
object prefix for data blocks (including trailing null byte).

Fixes: http://tracker.ceph.com/issues/16887
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 4de7c8d0a7222c83268d03b99015c6b9d25f124d)
src/librbd/internal.cc