Speed-up Sync process

This is a simple change which speeds up Sync process on systems with a high amount of Snapshots. It gets only Snapshots desired for the targeted FS and reduces output and thus Parsing time of the get command in the first place, and schould greatly reduce later processes (sorting arrays, mathing snaps) due to the reduced overhead.
This commit is contained in:
0xFate 2015-03-08 05:03:58 +01:00
parent 2f4d8a6e5c
commit 58362924de
1 changed files with 1 additions and 1 deletions

View File

@ -547,7 +547,7 @@ sub getsnaps() {
if ($rhost ne '') { $rhost = "$sshcmd $rhost"; }
my $getsnapcmd = "$rhost $zfscmd get -Hp creation |";
my $getsnapcmd = "$rhost $zfscmd get -Hpr creation $fs |";
if ($debug) { print "DEBUG: getting list of snapshots on $fs...\n"; }
open FH, $getsnapcmd;
my @rawsnaps = <FH>;