]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: Moved get_image_or_snap_spec and parse_options to utils
authorStefan Chivu <schivu@cloudbasesolutions.com>
Tue, 4 Oct 2022 12:25:45 +0000 (12:25 +0000)
committerStefan Chivu <stefan.chivu1@yahoo.com>
Fri, 7 Oct 2022 08:53:54 +0000 (08:53 +0000)
commitefe8ceb5398e52418ae9ac8c3e227d8bd66a65ff
tree710993554f06f18e8b5bab443b23325e25473706
parent51ba25c05c8ec93b26fc0b4fe6f3e5b685093244
rbd: Moved get_image_or_snap_spec and parse_options to utils

At the moment, there are multiple copies of "get_image_or_snap_spec".

For this reason, we're moving it to Utils.cc so that all backends may
re-use it, also benefiting from the recent pool related fix.

We are also renaming parse_options to append_options_as_args and
changing its type to void

Signed-off-by: Stefan Chivu <schivu@cloudbasesolutions.com>
src/tools/rbd/Utils.cc
src/tools/rbd/Utils.h
src/tools/rbd/action/Ggate.cc
src/tools/rbd/action/Nbd.cc
src/tools/rbd/action/Wnbd.cc