fix iszfsbusy check for similar dataset names
This commit is contained in:
parent
487693993b
commit
13ba2b43fa
2
syncoid
2
syncoid
|
@ -1107,7 +1107,7 @@ sub iszfsbusy {
|
||||||
|
|
||||||
foreach my $process (@processes) {
|
foreach my $process (@processes) {
|
||||||
# if ($debug) { print "DEBUG: checking process $process...\n"; }
|
# 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
|
# there's already a zfs receive process for our target filesystem - return true
|
||||||
if ($debug) { print "DEBUG: process $process matches target $fs!\n"; }
|
if ($debug) { print "DEBUG: process $process matches target $fs!\n"; }
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue