Bug correction in 'getsnaps'
getsnaps not working when snapshot name contains 'creation'
This commit is contained in:
parent
c121305b9d
commit
8534369204
6
syncoid
6
syncoid
|
@ -798,11 +798,9 @@ sub getsnaps() {
|
|||
if ($line =~ /$fs\@/) {
|
||||
chomp $line;
|
||||
my $ctime = $line;
|
||||
$ctime =~ s/^.*creation\s*//;
|
||||
$ctime =~ s/\s*-$//;
|
||||
$ctime =~ s/^.*\screation\s*(\d*).*/$1/;
|
||||
my $snap = $line;
|
||||
$snap =~ s/\s*creation.*$//;
|
||||
$snap =~ s/^\S*\@//;
|
||||
$snap =~ s/^\S*\@(\S*)\s*creation.*$/$1/;
|
||||
$snaps{$type}{$snap}{'ctime'}=$ctime;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue