]> git.proxmox.com Git - pve-container.git/commit
move_volume: call deactivate volume for the old volid in any case
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 4 May 2022 08:15:02 +0000 (10:15 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 14 Jun 2022 09:42:19 +0000 (11:42 +0200)
commit4be329cba8493cb4bce9b8fa20fa1a8b7683832e
treecda6ff464a35a0928671c94ab2929a466267a228
parentacbc6663423117463966ee2668a705fdb64b495c
move_volume: call deactivate volume for the old volid in any case

not only when we want to remove it. Otherwise, if the old volume is
mapped (e.g. ceph krbd), we don't unmap it when we're finished.

We have to save if we deactivated successfully before attempting to
remove it. If it was not removed (either because we could not
deactivate, or the remove failed), we add it back as unused.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/API2/LXC.pm