[pve-devel] [PATCH storage/manager/container 0/3] map_volume and unmap_volume

Alwin Antreich a.antreich at proxmox.com
Thu Nov 8 14:05:14 CET 2018


This patch series implements the map/unmap volume for container. In the
specific case of RBD, it removes the two storage entries pointing to the same
ceph pool.

This provides the functionality (when implemented in the storage plugin) to
call the map/unamp of a volume as a block device, on a storage that allows
different access methods. For example with RBD you can use the kernel RBD
(krbd) or the librbd implementation. The container implementation needs the
former mentioned krbd, whereas for VMs (qemu) both access methods are usable.

---
  call map_volume before using volumes.

 src/PVE/LXC.pm | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

  implement map_volume and unmap_volume

 PVE/Storage.pm           | 26 +++++++++++++++++-
 PVE/Storage/Plugin.pm    | 12 +++++++++
 PVE/Storage/RBDPlugin.pm | 69 ++++++++++++++++++++++++++++++------------------
 3 files changed, 80 insertions(+), 27 deletions(-)

  call map_volume before using volumes.

 src/PVE/LXC.pm | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

  add_storage creates only one ceph storage entry

 PVE/API2/Ceph.pm | 25 ++++++++++---------------
 1 file changed, 10 insertions(+), 15 deletions(-)

-- 
2.11.0





More information about the pve-devel mailing list