Add -r to zfs get -t snap for zfs 8.1

This commit is contained in:
Jim Salter 2019-04-07 19:51:32 -04:00 committed by GitHub
parent 607aad0a91
commit 8d8df7e533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1384,7 +1384,7 @@ sub getsnaps() {
$fsescaped = escapeshellparam($fsescaped);
}
my $getsnapcmd = "$rhost $mysudocmd $zfscmd get -Hpd 1 -t snapshot guid,creation $fsescaped |";
my $getsnapcmd = "$rhost $mysudocmd $zfscmd get -Hpd 1 -rt snapshot guid,creation $fsescaped |";
if ($debug) { print "DEBUG: getting list of snapshots on $fs using $getsnapcmd...\n"; }
open FH, $getsnapcmd;
my @rawsnaps = <FH>;