]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: prevent creation of v2 image ids that are too large 10652/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 5 Aug 2016 00:40:10 +0000 (20:40 -0400)
committerLoic Dachary <ldachary@redhat.com>
Wed, 10 Aug 2016 08:49:11 +0000 (10:49 +0200)
commit775c78d4bb31640a006d255ec0cb3818b6a5d23a
tree27d64b9d588d89fb84e40834ef4d3c0a39341e24
parentaacb793948a69294e518f8458be6e670df23fe53
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