]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
2 years agorbd: Removed device_name argument from wnbd unmap
Stefan Chivu [Tue, 4 Oct 2022 14:02:14 +0000 (14:02 +0000)]
rbd: Removed device_name argument from wnbd unmap

Right now, rbd-wnbd doesn't actually use disk path
identifiers such as "/dev/*" or "\\.\PhysicalDrive*".

So instead of accepting two arguments that are basically
handled more or less the same, we're dropping the device_name
argument and sticking to the image spec.

Signed-off-by: Stefan Chivu <schivu@cloudbasesolutions.com>
2 years agorbd: Moved get_image_or_snap_spec and parse_options to utils
Stefan Chivu [Tue, 4 Oct 2022 12:25:45 +0000 (12:25 +0000)]
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>
2 years agorbd: Added namespace optarg for rbd device unmap
Stefan Chivu [Mon, 3 Oct 2022 08:20:58 +0000 (08:20 +0000)]
rbd: Added namespace optarg for rbd device unmap

When executing rbd device unmap, an explicit namespace optarg wasn't available

Fixes: https://tracker.ceph.com/issues/57765
Signed-off-by: Stefan Chivu <schivu@cloudbasesolutions.com>