]> git.proxmox.com Git - pve-container.git/commit
api: move-volume: add move to another container
authorAaron Lauterer <a.lauterer@proxmox.com>
Tue, 9 Nov 2021 14:55:39 +0000 (15:55 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 9 Nov 2021 15:15:52 +0000 (16:15 +0100)
commita337a832aa5c70636e9731dcde426e260aa24f29
tree43ac162637bb75242baf51531bc3269b9b560dd2
parenteacc42f0785819fdec9380a3b08b2193574408f0
api: move-volume: add move to another container

The goal of this is to expand the move-volume API endpoint to make it
possible to move a container volume / mountpoint to another container.

For unused volumes, the API parameters have been changed to allow them
as well. This means, additional checks had to be introduced to avoid
migration of an unusedX volume to another storage. Some follow up work
is needed for that to work properly.

Moving the rootfs from or to another container is prohibited.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
src/PVE/API2/LXC.pm