]> git.proxmox.com Git - pve-storage.git/commit - PVE/Storage/Plugin.pm
fix #2467: avoid duplicate volumes & tag with correct content type
authorTim Marx <t.marx@proxmox.com>
Thu, 21 Nov 2019 10:43:20 +0000 (11:43 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 21 Nov 2019 11:43:55 +0000 (12:43 +0100)
commit5dae1a319b32ea3ebbb0b48a9f0b5e3abd1833c9
tree93b8568d3fa3db1c74aecc9b015dadda216d113a
parent528aa0eefbc980d7871d94f36f6b6b2a3e17e473
fix #2467: avoid duplicate volumes & tag with correct content type

The bugfix for #2317 introduced a kind of odd API behavior, where
each volume was returned twice from our API if a storage has both
'rootdir' & 'images' content types enabled. To give the content type
of the volume an actual meaning, it is now inferred from the
associated guest, if there's no guest or we don't have an owner for
that volume we default to 'images'.

At the volume level, there is no option to list volumes based on
content types, since the volumes do not know what type they are
actually used for.

Signed-off-by: Tim Marx <t.marx@proxmox.com>
PVE/Storage/Plugin.pm