diff --git a/btrbk b/btrbk index 880d1b7..c653fbf 100755 --- a/btrbk +++ b/btrbk @@ -1679,7 +1679,7 @@ sub get_receive_targets($$) # guess matches by subvolume name (node->received_uuid is not available if BTRFS_PROGS_COMPAT is set) DEBUG "Fallback to compatibility mode (get_receive_targets)"; foreach my $target (@$droot_subvols) { - next unless($_->{node}{readonly}); + next unless($target->{node}{readonly}); if($target->{NAME} eq $src_vol->{NAME}) { TRACE "get_receive_targets: by-name: Found receive target: $target->{SUBVOL_PATH}"; push(@ret, $target);