We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e9e388b + f4d165b commit 482d939Copy full SHA for 482d939
t/zfs
@@ -21,10 +21,17 @@ print STDERR '# zfs ' . join(' ', @ARGV) . "\n";
21
my $command = shift @ARGV or exit 1;
22
23
for ($command){
24
- /^(?:snapshot|set|inherit|send|recv)$/ && exit;
+ /^(?:set|inherit|send|recv)$/ && exit;
25
+
26
+ #pretend snapshot to fail => snapshot does exist already
27
+ /^snapshot$/ && exit 1;
28
29
/^list$/ && do {
30
if ($ARGV[3] eq '-t' && $ARGV[4] eq 'snapshot'){
31
+ if ($ARGV[-1] =~ /^[^\@]+\@[^\@]+$/){
32
+ print $ARGV[-1] . "\n";
33
+ exit;
34
+ }
35
my $snapCount = ($dataSets{$ARGV[-1]} eq 'src') ? 60 : 58;
36
#get timestamp rounded to minutes
37
my $time = localtime(int(time / 60) * 60 - 3600);
0 commit comments