]> git.proxmox.com Git - pve-storage.git/commit
map_volume: fall back to 'path'
authorMira Limbeck <m.limbeck@proxmox.com>
Mon, 29 Apr 2019 13:00:38 +0000 (15:00 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 29 Apr 2019 13:44:40 +0000 (13:44 +0000)
commitd560ec28606856ada41d91b6a03b74dda67eb96a
tree06f05d7b70d173b12466d0c238277e419ae28f6e
parentb5c8278a3e1a56bc4122fbd44a0526124349550f
map_volume: fall back to 'path'

Adds a fallback to 'Plugin::path' in the default implementation of
'map_volume' to simplify a common case of calling 'map_volume' followed
by a defined-check and a call to path if it is not. The path is now
always returned if the plugin in question does not override
'map_volume'.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
PVE/Storage/Plugin.pm