Merge pull request #507 from phreaker0/fix-busy-detection
fix iszfsbusy check for similar dataset names
This commit is contained in:
commit
42ea8dffce
2
syncoid
2
syncoid
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue