Fix iszfsbusy to not match pool prefix

This commit is contained in:
Ifaz Kabir 2025-12-03 23:49:22 -05:00
parent dbcaeef1ac
commit 4543705ffc
1 changed files with 1 additions and 1 deletions

View File

@ -1402,7 +1402,7 @@ sub iszfsbusy {
close PL;
foreach my $process (@processes) {
if ($process =~ /zfs *(receive|recv)[^\/]*\Q$fs\E\Z/) {
if ($process =~ /zfs *(receive|recv)[^\/]*\s\Q$fs\E\Z/) {
# there's already a zfs receive process for our target filesystem - return true
writelog('DEBUG', "process $process matches target $fs!");
return 1;