]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: store and retrieve snapshot metadata based on id 2205/head
authorJosh Durgin <josh.durgin@inktank.com>
Fri, 25 Jul 2014 21:08:16 +0000 (14:08 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Fri, 25 Jul 2014 21:08:16 +0000 (14:08 -0700)
commitba9d52e8e191a2502358047dcd20eecee04bbd48
tree148591a46e2a27cd1ce7b8ebbc41e0e8b2ab03b4
parent2545e80d274b23b6715f4d8b1f4c6b96182996fb
librbd: store and retrieve snapshot metadata based on id

Snapshots are usually accessed by id internally, so change accessors
to take id instead of name. Keep a separate map of name -> id for
looking up human-specified names.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/librbd/ImageCtx.cc
src/librbd/ImageCtx.h
src/librbd/SnapInfo.h
src/librbd/internal.cc