]> git.proxmox.com Git - pve-storage.git/commitdiff
add lvmthinscan to CLI
authorDietmar Maurer <dietmar@proxmox.com>
Sat, 20 Feb 2016 09:11:59 +0000 (10:11 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Sat, 20 Feb 2016 09:11:59 +0000 (10:11 +0100)
PVE/API2/Storage/Scan.pm
PVE/CLI/pvesm.pm

index 3e3f2c3d3b1076d5c6e24d1d380262b9db5d52ff..11d139ffc731afaee36ab329a6c25cac90629b7d 100644 (file)
@@ -239,7 +239,7 @@ __PACKAGE__->register_method ({
     }});
 
 __PACKAGE__->register_method ({
-    name => 'thinlvmscan',
+    name => 'lvmthinscan',
     path => 'lvmthin',
     method => 'GET',
     description => "List local LVM Thin Pools.",
@@ -270,6 +270,7 @@ __PACKAGE__->register_method ({
     },
     code => sub {
        my ($param) = @_;
+
        return PVE::Storage::LvmThinPlugin::list_thinpools($param->{vg});
     }});
 
index 0724eaafe020a46b765a1aa4592e866f8db0f220..771c8810c3ee8cb66113ed50d532bd11861d7538 100755 (executable)
@@ -159,6 +159,13 @@ our $cmddef = {
                         printf "$rec->{vg}\n";
                     }
                 }],
+    lvmthinscan => [ "PVE::API2::Storage::Scan", 'lvmthinscan', ['vg'],
+                { node => $nodename }, sub  {
+                    my $res = shift;
+                    foreach my $rec (@$res) {
+                        printf "$rec->{lv}\n";
+                    }
+                }],
     zfsscan => [ "PVE::API2::Storage::Scan", 'zfsscan', [],
                 { node => $nodename }, sub  {
                     my $res = shift;