]> git.proxmox.com Git - pve-manager.git/commitdiff
partially fix #2285: ui: ceph: allow selecting partitions
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 6 Oct 2021 09:18:51 +0000 (11:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 11 Nov 2021 20:50:54 +0000 (21:50 +0100)
For DB and WAL disks, not only partitions will show up now, but one
more type of disk, that didn't show up before: Namely, GPT-partitioned
disks with any partitions detected as used.

It's confusing as the size shown is of the full disk, with no
indication that a new partition will be appended at the end. This
problem was already present before, but only affected GPT-partitioned
disks where no usage on a partition was detected.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
www/manager6/ceph/OSD.js

index b297d3ae3f8829861c94095e644e45dfc4923748..b21209567cd36156fe63d0f7a636fe900f7cce56 100644 (file)
@@ -38,6 +38,7 @@ Ext.define('PVE.CephCreateOsd', {
                            name: 'dev',
                            nodename: me.nodename,
                            diskType: 'unused',
+                           includePartitions: true,
                            fieldLabel: gettext('Disk'),
                            allowBlank: false,
                        },
@@ -48,6 +49,7 @@ Ext.define('PVE.CephCreateOsd', {
                            name: 'db_dev',
                            nodename: me.nodename,
                            diskType: 'journal_disks',
+                           includePartitions: true,
                            fieldLabel: gettext('DB Disk'),
                            value: '',
                            autoSelect: false,
@@ -101,6 +103,7 @@ Ext.define('PVE.CephCreateOsd', {
                            name: 'wal_dev',
                            nodename: me.nodename,
                            diskType: 'journal_disks',
+                           includePartitions: true,
                            fieldLabel: gettext('WAL Disk'),
                            value: '',
                            autoSelect: false,