Merge pull request #507 from phreaker0/fix-busy-detection

fix iszfsbusy check for similar dataset names
This commit is contained in:
Jim Salter 2020-11-01 17:24:20 -05:00 committed by GitHub
commit 42ea8dffce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1112,7 +1112,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;