Also check for 'zfs receive' alias

This commit is contained in:
Jason Lawrence 2015-12-31 11:03:59 -06:00
parent c039f2fff7
commit 921ec1b3da
2 changed files with 2 additions and 2 deletions

2
sanoid
View File

@ -1006,7 +1006,7 @@ sub iszfsbusy {
foreach my $process (@processes) {
# if ($args{'debug'}) { print "DEBUG: checking process $process...\n"; }
if ($process =~ /zfs *(send|receive).*$fs/) {
if ($process =~ /zfs *(send|receive|recv).*$fs/) {
# there's already a zfs send/receive process for our target filesystem - return true
# if ($args{'debug'}) { print "DEBUG: process $process matches target $fs!\n"; }
return 1;

View File

@ -466,7 +466,7 @@ sub iszfsbusy {
foreach my $process (@processes) {
# if ($debug) { print "DEBUG: checking process $process...\n"; }
if ($process =~ /zfs receive.*$fs/) {
if ($process =~ /zfs *(receive|recv).*$fs/) {
# there's already a zfs receive process for our target filesystem - return true
if ($debug) { print "DEBUG: process $process matches target $fs!\n"; }
return 1;