mirror of https://github.com/jimsalterjrs/sanoid
Add -r to zfs get -t snap for zfs 8.1
This commit is contained in:
parent
607aad0a91
commit
8d8df7e533
2
syncoid
2
syncoid
|
|
@ -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>;
|
||||
|
|
|
|||
Loading…
Reference in New Issue