mirror of https://github.com/digint/btrbk
btrbk: extents-diff: more logging
parent
f9cc5af7b9
commit
b01a97c36f
7
btrbk
7
btrbk
|
@ -2281,7 +2281,7 @@ sub read_extentmap_cache($)
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
if($gen != $vol->{node}{gen}) {
|
if($gen != $vol->{node}{gen}) {
|
||||||
INFO "Subvolume generation has changed (cache=$gen, subvol=$vol->{node}{gen}), ignoring cache: $file";
|
WARN "Subvolume generation has changed (cache=$gen, subvol=$vol->{node}{gen}), ignoring cache: $file";
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
while(read $fh, $buf, 8 * 2) { # read / unpack two words
|
while(read $fh, $buf, 8 * 2) { # read / unpack two words
|
||||||
|
@ -5759,7 +5759,10 @@ MAIN:
|
||||||
foreach my $vol (sort { ($b->{node}{readonly} ? $b->{node}{cgen} : $b->{node}{gen}) <=>
|
foreach my $vol (sort { ($b->{node}{readonly} ? $b->{node}{cgen} : $b->{node}{gen}) <=>
|
||||||
($a->{node}{readonly} ? $a->{node}{cgen} : $a->{node}{gen}) }
|
($a->{node}{readonly} ? $a->{node}{cgen} : $a->{node}{gen}) }
|
||||||
@resolved_vol) {
|
@resolved_vol) {
|
||||||
next if($prev_data && ($prev_data->{_vinfo}{node}{id} == $vol->{node}{id})); # skip duplicates
|
if($prev_data && ($prev_data->{_vinfo}{node}{id} == $vol->{node}{id})) {
|
||||||
|
INFO "Skipping duplicate of \"$prev_data->{_vinfo}{PRINT}\": $vol->{PRINT}";
|
||||||
|
next;
|
||||||
|
}
|
||||||
|
|
||||||
# read extent map
|
# read extent map
|
||||||
if($vol->{EXTENTMAP} = read_extentmap_cache($vol)) {
|
if($vol->{EXTENTMAP} = read_extentmap_cache($vol)) {
|
||||||
|
|
Loading…
Reference in New Issue