btrbk: action_cp: dont fail on rw subvols if recursive

action-cp
Axel Burri 2023-03-26 14:14:32 +02:00
parent c849edd3cf
commit 33d3f09ffd
1 changed files with 2 additions and 1 deletions

3
btrbk
View File

@ -6055,7 +6055,8 @@ MAIN:
unless($svol->{node}{readonly}) {
WARN "Subvolume is not read-only, skipping: $svol->{PRINT}";
$exit_status = 10;
$exit_status = 10 unless($recursive);
next;
}
my $dvol = $svol->{SUBVOL_DIR} ? vinfo($droot->{URL} . "/" . $svol->{SUBVOL_DIR}, $droot->{CONFIG}) : $droot;