]> git.proxmox.com Git - pve-storage.git/commit - PVE/Diskmanage.pm
Diskmanage: add append_partition sub
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 4 Jun 2019 10:35:23 +0000 (12:35 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 4 Jun 2019 10:51:44 +0000 (12:51 +0200)
commit1dc3038d40278957b35aea2cc5c571597c38357c
tree319ec33be6e6a81a4bdee25a4270b60dd1bfb405
parent52a064afcd47f559d90166627f794f681a2e4cbd
Diskmanage: add append_partition sub

we will use this for adding a partition to a disk when using a device
for ceph osd db/wal which already has partitions on it

first we search for the highest partition number, then add the partition
and search for the resulting device (we cannot assume to simply
append the number, e.g. from /dev/nvme0n1 we get /dev/nvme0n1pX)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/Diskmanage.pm