]> git.proxmox.com Git - pve-storage.git/commit - PVE/Storage/LvmThinPlugin.pm
Use a common interface for find_free_diskname
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 11 Dec 2019 09:25:49 +0000 (10:25 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 Dec 2019 11:52:43 +0000 (12:52 +0100)
commita44c0147bc861de9c5c52e29faf76c15e40609bd
tree79deb1f1c9ca95805bfd5e2613824b2049ae9a99
parenta573f66a2ecc6b2ccbee9d7088c05f9e81dc592d
Use a common interface for find_free_diskname

We can use 'list_images' to get the desired volume IDs in
'find_free_diskname' for most plugins. For the two LVM plugins, 'list_images'
potentially skips untagged volumes, so we keep the custom version. For the
RBD plugin, 'list_images' is much more costly than the custom version, so we
keep the custom version.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/Storage/GlusterfsPlugin.pm
PVE/Storage/LVMPlugin.pm
PVE/Storage/LvmThinPlugin.pm
PVE/Storage/Plugin.pm
PVE/Storage/RBDPlugin.pm
PVE/Storage/ZFSPlugin.pm
PVE/Storage/ZFSPoolPlugin.pm