[pve-devel] [PATCH manager 3/5] ceph: osd create: add missing gpt check

Dominik Csapak d.csapak at proxmox.com
Wed Jun 5 15:59:39 CEST 2019


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 PVE/API2/Ceph/OSD.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/API2/Ceph/OSD.pm b/PVE/API2/Ceph/OSD.pm
index 64d2d0fb..57588203 100644
--- a/PVE/API2/Ceph/OSD.pm
+++ b/PVE/API2/Ceph/OSD.pm
@@ -361,7 +361,7 @@ __PACKAGE__->register_method ({
 
 		return "$vg/$lv";
 
-	    } elsif ($dev->{used} eq 'partitions') {
+	    } elsif ($dev->{used} eq 'partitions' && $dev->{gpt}) {
 		# create new partition at the end
 
 		return PVE::Diskmanage::append_partition($dev->{devpath}, $size * 1024);
-- 
2.11.0





More information about the pve-devel mailing list