mirror of https://github.com/digint/btrbk
btrbk: skip subvolume init on archive
parent
6f1145c279
commit
d4ab986245
15
btrbk
15
btrbk
|
@ -6295,6 +6295,14 @@ MAIN:
|
|||
}
|
||||
foreach my $svol (vinfo_subsection($sroot, 'subvolume')) {
|
||||
DEBUG "Initializing subvolume section: $svol->{PRINT}";
|
||||
my $snaproot = vinfo_snapshot_root($svol);
|
||||
unless(vinfo_init_root($snaproot)) {
|
||||
ABORTED($svol, "Failed to fetch subvolume detail for snapshot_dir");
|
||||
WARN "Skipping subvolume \"$svol->{PRINT}\": " . ABORTED_TEXT($svol), @stderr;
|
||||
next;
|
||||
}
|
||||
next if($skip_snapshots || $action_archive);
|
||||
|
||||
unless(vinfo_init_root($svol)) {
|
||||
ABORTED($svol, "Failed to fetch subvolume detail");
|
||||
WARN "Skipping subvolume \"$svol->{PRINT}\": " . ABORTED_TEXT($svol), @stderr;
|
||||
|
@ -6315,13 +6323,6 @@ MAIN:
|
|||
WARN "Skipping subvolume \"$svol->{PRINT}\": " . ABORTED_TEXT($svol);
|
||||
next;
|
||||
}
|
||||
|
||||
my $snaproot = vinfo_snapshot_root($svol);
|
||||
unless(vinfo_init_root($snaproot)) {
|
||||
ABORTED($svol, "Failed to fetch subvolume detail for snapshot_dir");
|
||||
WARN "Skipping subvolume \"$svol->{PRINT}\": " . ABORTED_TEXT($svol), @stderr;
|
||||
next;
|
||||
}
|
||||
unless(_is_same_fs_tree($snaproot->{node}, $svol->{node})) {
|
||||
ABORTED($svol, "Snapshot path is not on same filesystem");
|
||||
WARN "Skipping subvolume \"$svol->{PRINT}\": " . ABORTED_TEXT($svol);
|
||||
|
|
Loading…
Reference in New Issue