]> git.proxmox.com Git - pve-storage.git/commit - PVE/Storage.pm
Introduce allow_rename parameter for pvesm import and storage_migrate
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 8 Apr 2020 09:25:05 +0000 (11:25 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 9 Apr 2020 07:41:01 +0000 (09:41 +0200)
commita97d3ee49f21a61d3df10d196140c95dde45ec27
tree530e65e6bb3a71c5ee06349204f1e8f86738deef
parent5f184292feda1b551760c4a4c64c8f69a352c7ab
Introduce allow_rename parameter for pvesm import and storage_migrate

and also return the ID of the allocated volume. This option
allows plugins to choose a new name if there is a collision.

In storage_migrate, the API version of the receiving side is checked.

In Storage.pm's volume_import, when a plugin returns 'undef',
it can be assumed that the import with the requested volid was
successful (it should've died otherwise) and so volid is returned.
This is done for backwards compatibility with foreign plugins.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/CLI/pvesm.pm
PVE/Storage.pm
PVE/Storage/LVMPlugin.pm
PVE/Storage/Plugin.pm
PVE/Storage/ZFSPoolPlugin.pm