]> git.proxmox.com Git - pve-storage.git/commit - PVE/Storage/ZFSPoolPlugin.pm
zfs: list zvol: limit recursion depth to 1
authorFiona Ebner <f.ebner@proxmox.com>
Tue, 10 Jan 2023 12:52:43 +0000 (13:52 +0100)
committerWolfgang Bumiller <w.bumiller@errno.eu>
Tue, 10 Jan 2023 13:31:21 +0000 (14:31 +0100)
commitd05015f88703d56c8c558690eb3c9e1debbd5d74
tree705a6f04abc1c21e81e151e870514111c4d93cbe
parent4c82e7b61cb94f217fcd1222852aa20eef9ea70b
zfs: list zvol: limit recursion depth to 1

To be correct in all cases, it's still necessary to filter by "pool"
in zfs_parse_zvol_list(), because $scfg->{pool} could be e.g.
'foo/vm-123-disk-0' which looks like an image name and would pass the
other "should skip"-checks in zfs_parse_zvol_list().

No change in the result of zfs_list_zvol() is intended.

Suggested-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
PVE/Storage/ZFSPoolPlugin.pm