fix iszfsbusy check for similar dataset names

This commit is contained in:
Christoph Klaffl 2020-02-13 01:37:54 +01:00
parent 487693993b
commit 13ba2b43fa
No known key found for this signature in database
GPG Key ID: 8FC1D76EED4970D2
1 changed files with 1 additions and 1 deletions

View File

@ -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;