From 921ec1b3da6274f6ac3cbd38c19625936eb93bcb Mon Sep 17 00:00:00 2001 From: Jason Lawrence Date: Thu, 31 Dec 2015 11:03:59 -0600 Subject: [PATCH] Also check for 'zfs receive' alias --- sanoid | 2 +- syncoid | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sanoid b/sanoid index 1c43e47..0d6b15d 100755 --- a/sanoid +++ b/sanoid @@ -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; diff --git a/syncoid b/syncoid index a0a3d20..9129e28 100755 --- a/syncoid +++ b/syncoid @@ -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;