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\@/) {
|
if ($line =~ /$fs\@/) {
|
||||||
chomp $line;
|
chomp $line;
|
||||||
my $ctime = $line;
|
my $ctime = $line;
|
||||||
$ctime =~ s/^.*creation\s*//;
|
$ctime =~ s/^.*\screation\s*(\d*).*/$1/;
|
||||||
$ctime =~ s/\s*-$//;
|
|
||||||
my $snap = $line;
|
my $snap = $line;
|
||||||
$snap =~ s/\s*creation.*$//;
|
$snap =~ s/^\S*\@(\S*)\s*creation.*$/$1/;
|
||||||
$snap =~ s/^\S*\@//;
|
|
||||||
$snaps{$type}{$snap}{'ctime'}=$ctime;
|
$snaps{$type}{$snap}{'ctime'}=$ctime;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue