Merge pull request #3 from 0xFate/patch-1

don't list snapshots outside of target dataset in source zpool - thank you 0xFate for the patch
This commit is contained in:
Jim Salter 2015-03-08 09:09:59 -04:00
commit 8f7d0169a4
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>;