]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: relocate image option processing to create state machine
authorJason Dillaman <dillaman@redhat.com>
Thu, 6 Oct 2016 14:57:21 +0000 (10:57 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 6 Oct 2016 18:50:21 +0000 (14:50 -0400)
commitb083fa0c933c1d69e315daf56ecffa64295cc8f2
tree6f76062d155746c3f0c6ddf38d00bbd012bdf258
parent8b72efd181b4fbfbe552f515ce798e09cc478fe6
librbd: relocate image option processing to create state machine

Replace the individual image option parameters with the ImageOptions
wrapper and extract the options within the state machine itself.
This will simplify adding support for the data pool and other options
in the future.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/image/CreateRequest.cc
src/librbd/image/CreateRequest.h
src/librbd/internal.cc
src/librbd/internal.h
src/test/rbd_mirror/image_replayer/test_mock_CreateImageRequest.cc
src/tools/rbd_mirror/image_replayer/CreateImageRequest.cc