]> git.proxmox.com Git - pve-storage.git/commit
diskmanage: allow passing partitions to get_disks
authorFabian Ebner <f.ebner@proxmox.com>
Tue, 28 Sep 2021 11:39:48 +0000 (13:39 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 30 Sep 2021 16:11:00 +0000 (18:11 +0200)
commita64aedd3eb37acb36e988b82e2149379f8c80363
treee22f22a0ac4988e60fcd34f1f868463126284f09
parent0f4533476d7e3c951278afe388cdff3a4655922a
diskmanage: allow passing partitions to get_disks

Requires that the $include_partitions parameter is set too, which:
1. Makes sense, because the partition won't be included in the result
   otherwise.
2. Ensures backwards compatibility for existing callers that don't
   use $include_partitions. No existing callers use both $disks and
   $include_partitions at the same time, so nothing learns to
   "support" partitions by accident.

Moving the strip_dev helper to the top, so it can be used everywhere.

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