]> git.proxmox.com Git - qemu-server.git/commitdiff
fix a few property string descriptions
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 30 Mar 2016 10:20:06 +0000 (12:20 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 1 Apr 2016 07:26:51 +0000 (09:26 +0200)
PVE/QemuServer.pm

index df9932cf5d5b60a08720e48ef9f0bc33919fc4d6..4d16036bdb593dcc7ea9356d854499c927f5a209 100644 (file)
@@ -520,7 +520,8 @@ my $drivename_hash;
 my %drivedesc_base = (
     volume => { alias => 'file' },
     file => {
-       type => 'pve-volume-id',
+       type => 'string',
+       format => 'pve-volume-id',
        default_key => 1,
        format_description => 'volume',
        description => "The drive's backing volume.",
@@ -677,17 +678,17 @@ my $add_throttle_desc = sub {
 $add_throttle_desc->('bps',     'integer', 'r/w speed',   'bps',  'bytes');
 $add_throttle_desc->('bps_rd',  'integer', 'read speed',  'bps',  'bytes');
 $add_throttle_desc->('bps_wr',  'integer', 'write speed', 'bps',  'bytes');
-$add_throttle_desc->('mbps',    'float',   'r/w speed',   'mbps', 'megabytes');
-$add_throttle_desc->('mbps_rd', 'float',   'read speed',  'mbps', 'megabytes');
-$add_throttle_desc->('mbps_wr', 'float',   'write speed', 'mbps', 'megabytes');
+$add_throttle_desc->('mbps',    'number',  'r/w speed',   'mbps', 'megabytes');
+$add_throttle_desc->('mbps_rd', 'number',  'read speed',  'mbps', 'megabytes');
+$add_throttle_desc->('mbps_wr', 'number',  'write speed', 'mbps', 'megabytes');
 $add_throttle_desc->('iops',    'integer', 'r/w I/O',     'iops', 'operations');
 $add_throttle_desc->('iops_rd', 'integer', 'read I/O',    'iops', 'operations');
 $add_throttle_desc->('iops_wr', 'integer', 'write I/O',   'iops', 'operations');
 
 # pools: (pool of IO before throttling starts taking effect)
-$add_throttle_desc->('mbps_max',    'float',   'unthrottled r/w pool',       'mbps', 'megabytes');
-$add_throttle_desc->('mbps_rd_max', 'float',   'unthrottled read pool',      'mbps', 'megabytes');
-$add_throttle_desc->('mbps_wr_max', 'float',   'unthrottled write pool',     'mbps', 'megabytes');
+$add_throttle_desc->('mbps_max',    'number',  'unthrottled r/w pool',       'mbps', 'megabytes');
+$add_throttle_desc->('mbps_rd_max', 'number',  'unthrottled read pool',      'mbps', 'megabytes');
+$add_throttle_desc->('mbps_wr_max', 'number',  'unthrottled write pool',     'mbps', 'megabytes');
 $add_throttle_desc->('iops_max',    'integer', 'unthrottled r/w I/O pool',   'iops', 'operations');
 $add_throttle_desc->('iops_rd_max', 'integer', 'unthrottled read I/O pool',  'iops', 'operations');
 $add_throttle_desc->('iops_wr_max', 'integer', 'unthrottled write I/O pool', 'iops', 'operations');