[pve-devel] [PATCH 20/44] sheepdog : sheepdog_snapshot_ls : fix

Alexandre Derumier aderumier at odiso.com
Tue Feb 5 12:55:47 CET 2013


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/Storage/SheepdogPlugin.pm |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PVE/Storage/SheepdogPlugin.pm b/PVE/Storage/SheepdogPlugin.pm
index 4344e87..b94c79e 100644
--- a/PVE/Storage/SheepdogPlugin.pm
+++ b/PVE/Storage/SheepdogPlugin.pm
@@ -87,8 +87,8 @@ sub sheepdog_snapshot_ls {
     run_command($cmd, outfunc => sub {
         my $line = shift;
         $line = trim($line);
-	if ($line =~ /s\s(\S+)\s(\d+)\s(\d+)\s(\d+)\s(\d+)\s(\d+)\s(\S+)\s(\d+)\s(\S+)/) {
-	    $list->{$9} = 1;
+	if ($line =~ m/s $volname (\d+) (\d+) (\d+) (\d+) (\d+) (\S+) (\d+) (\S+)/) {
+	    $list->{$8} = 1;
 	}
     });
 
-- 
1.7.10.4




More information about the pve-devel mailing list