]> git.proxmox.com Git - pve-storage.git/commit
fix #3610: properly build ZFS detail tree
authorFabian Ebner <f.ebner@proxmox.com>
Fri, 10 Sep 2021 11:45:35 +0000 (13:45 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 10 Sep 2021 12:19:39 +0000 (14:19 +0200)
commit576e143ac1362222a20b0a2f743d4be7fd0c95f1
treeffc79eb0cc863af49d77a2a1c01f451b416f057a
parentd5fc368503fc04fdbc411d0a6dde13fce75ece18
fix #3610: properly build ZFS detail tree

Previously, top-level vdevs like log or special were wrongly added as
children of the previous outer vdev instead of the root.

Fix it by also showing the vdev with the same name as the pool and
start counting from level 1 (the pool itself serves as the root and
should be the only one with level 0). This results in the same kind
of structure as in PBS and (except for the root) zpool status itself.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/API2/Disks/ZFS.pm