Merge pull request #1051 from ifazk/busyfix

Fix iszfsbusy to not match pool prefix
This commit is contained in:
Jim Salter 2026-02-18 17:04:44 -05:00 committed by GitHub
commit 9f76aab5d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1438,7 +1438,7 @@ sub iszfsbusy {
close PL; close PL;
foreach my $process (@processes) { 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 # there's already a zfs receive process for our target filesystem - return true
writelog('DEBUG', "process $process matches target $fs!"); writelog('DEBUG', "process $process matches target $fs!");
return 1; return 1;