]> git.proxmox.com Git - pve-storage.git/commit - PVE/Storage.pm
add disk rename feature
authorAaron Lauterer <a.lauterer@proxmox.com>
Tue, 9 Nov 2021 14:55:32 +0000 (15:55 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 9 Nov 2021 16:02:29 +0000 (17:02 +0100)
commit95dfa44ca1a41bd5913c5b7c66adcf8291fac6d4
tree0816b8f09c494f890d300756c05f1ae222365924
parent93fbc019630bc497b6b67a2cc6cf4ff66a2655e0
add disk rename feature

Functionality has been added for the following storage types:

* directory ones, based on the default implementation:
    * directory
    * NFS
    * CIFS
    * gluster
* ZFS
* (thin) LVM
* Ceph

A new feature `rename` has been introduced to mark which storage
plugin supports the feature.

Version API and AGE have been bumped.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
the intention of this feature is to support the following use-cases:
- reassign a volume from one owning guest to another (which usually
  entails a rename, since the owning vmid is encoded in the volume name)
- rename a volume (e.g., to use a more meaningful name instead of the
  auto-assigned ...-disk-123)

only the former is implemented at the caller side in
qemu-server/pve-container for now, but since the lower-level feature is
basically the same for both, we can take advantage of the storage plugin
API bump now to get the building block for this future feature in place
already.

adapt ApiChangelog change to fix conflicts and added more detail above

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
ApiChangeLog
PVE/Storage.pm
PVE/Storage/LVMPlugin.pm
PVE/Storage/LvmThinPlugin.pm
PVE/Storage/Plugin.pm
PVE/Storage/RBDPlugin.pm
PVE/Storage/ZFSPoolPlugin.pm