]> git.proxmox.com Git - pve-manager.git/commitdiff
make bluestore the default on the api
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 20 Oct 2017 09:44:25 +0000 (11:44 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 20 Oct 2017 10:01:41 +0000 (12:01 +0200)
with this we also have to send '0' to from the frontend, when the
bluestore checkbox is not checked

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/API2/Ceph.pm
www/manager6/ceph/OSD.js

index e523ecac1a1e413283f614991cc0e2b653afb6af..54bad234c7153711abf899e151224a4f7d6051e7 100644 (file)
@@ -212,9 +212,9 @@ __PACKAGE__->register_method ({
                optional => 1,
            },
            bluestore => {
-               description => "Use bluestore instead of filestore.",
+               description => "Use bluestore instead of filestore. This is the default.",
                type => 'boolean',
-               default => 0,
+               default => 1,
                optional => 1,
            },
        },
@@ -236,7 +236,7 @@ __PACKAGE__->register_method ({
 
        PVE::CephTools::check_ceph_installed('ceph_osd');
 
-       my $bluestore = $param->{bluestore} // 0;
+       my $bluestore = $param->{bluestore} // 1;
 
        my $journal_dev;
        my $wal_dev;
index 8e88d071f1aa50180923a17a5f53c4c7c1b88f8e..cb358eabbc6565642fae398cb2cde8afb24043e7 100644 (file)
@@ -119,6 +119,7 @@ Ext.define('PVE.CephCreateOsd', {
                    xtype: 'pvecheckbox',
                    name: 'bluestore',
                    fieldLabel: 'Bluestore',
+                   uncheckedValue: '0',
                    value: '1'
                }
             ]