From 13ba2b43fa35c838dcf5793ba279a3f1903ec416 Mon Sep 17 00:00:00 2001 From: Christoph Klaffl Date: Thu, 13 Feb 2020 01:37:54 +0100 Subject: [PATCH] fix iszfsbusy check for similar dataset names --- syncoid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncoid b/syncoid index 2eef326..4a336f1 100755 --- a/syncoid +++ b/syncoid @@ -1107,7 +1107,7 @@ sub iszfsbusy { foreach my $process (@processes) { # if ($debug) { print "DEBUG: checking process $process...\n"; } - if ($process =~ /zfs *(receive|recv).*\Q$fs\E/) { + if ($process =~ /zfs *(receive|recv).*\Q$fs\E\Z/) { # 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;