]> git.proxmox.com Git - pve-storage.git/commit
rbd: don't specify allow-shrink flag
authorFiona Ebner <f.ebner@proxmox.com>
Fri, 28 Apr 2023 12:32:08 +0000 (14:32 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 6 Jun 2023 17:25:27 +0000 (19:25 +0200)
commit4ff0f451bd00556a11e66b0d04441dd4df15ead6
treeae2e04c18f7f764b03067b992f1224c196153b9a
parent0bbb358c91c4c68e78e0826095990d4276215e29
rbd: don't specify allow-shrink flag

It was introduced by commit 4b7dd9d ("allow --allow-shrink on RBD
resize"), but doesn't give a rationale. A mail gives more[0],
indicating that the user also uses the function to shrink images.
However, the volume_resize function is only reachable via the resize
API endpoints for VMs and containers, which have an explicit check to
disallow shrinkage. If somebody really wants to shrink the image, just
let them use the storage's tools directly. Calling into Proxmox VE's
perl functions directly is not supported.

[0]: https://lists.proxmox.com/pipermail/pve-devel/2016-November/024077.html

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
src/PVE/Storage/RBDPlugin.pm