don't accidentally pick up snapshots when getting child datasets

This commit is contained in:
Jim Salter 2017-05-03 15:02:10 -04:00 committed by GitHub
parent 50f07db14f
commit 5fa92fa8cb
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ sub getchilddatasets {
if ($isroot) { $mysudocmd = ''; } else { $mysudocmd = $sudocmd; }
if ($rhost ne '') { $rhost = "$sshcmd $rhost"; }
my $getchildrencmd = "$rhost $mysudocmd $zfscmd list -o name -t filesystem -Hr $fs |";
my $getchildrencmd = "$rhost $mysudocmd $zfscmd list -o name -t filesystem,volume -Hr $fs |";
if ($debug) { print "DEBUG: getting list of child datasets on $fs using $getchildrencmd...\n"; }
open FH, $getchildrencmd;
my @children = <FH>;