]> 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)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Mon, 17 Oct 2022 08:47:42 +0000 (15:47 +0700)
commitad718316361c8f7255c21f314d6daffaf9b60ac9
tree03229d3eb9da5e64d08fe7e2a335644393528048
parent103bbb85a82b1abc9e5faa6a6e11e71a095eb979
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>
(cherry picked from commit efe8ceb5398e52418ae9ac8c3e227d8bd66a65ff)
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