]> git.proxmox.com Git - pve-container.git/commit - src/PVE/API2/LXC.pm
Fix #2109: resize rbd volume for container failed
authorAlwin Antreich <a.antreich@proxmox.com>
Fri, 8 Mar 2019 14:41:55 +0000 (15:41 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 11 Mar 2019 08:26:31 +0000 (09:26 +0100)
commit80440faa0ce47df75fab407f9f87dccf200965b2
tree4470b80925b28f45af58121534046bf4f323d9ad
parentfeb68ed26661af4f24645fb79f25c51c4f73954e
Fix #2109: resize rbd volume for container failed

On resizing a container's disk image the filesystem is extended and in
the case of RBD the returned path of the volume was not a path to a
mapped device.

This patch uses map_volume (respectively unmap_volume) to get a device
mapped and its path returned by the storage plugin. If a path is not
returned then the path method is tried. Currently only the RBD storage
plugin returns a path on map_volume.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
src/PVE/API2/LXC.pm