mirror of https://github.com/digint/btrbk
btrbk: fix regression: filter paths for action "ls"
regression from: eb69bc883e
btrbk: refactor mountinfo
pull/459/head
parent
ff0a887c32
commit
a25486336b
1
btrbk
1
btrbk
|
@ -5907,6 +5907,7 @@ MAIN:
|
||||||
my $svol_path = $svol->{PATH};
|
my $svol_path = $svol->{PATH};
|
||||||
$svol_path =~ s/^\/\//\//; # sanitize "//" (see vinfo_child)
|
$svol_path =~ s/^\/\//\//; # sanitize "//" (see vinfo_child)
|
||||||
|
|
||||||
|
next unless($root_path eq "/" || $svol_path =~ /^\Q$root_path\E(\/|\z)/);
|
||||||
if(_find_mountpoint($mnt, $svol_path) ne $mnt) {
|
if(_find_mountpoint($mnt, $svol_path) ne $mnt) {
|
||||||
DEBUG "Subvolume is hidden by another mount point: $svol->{PRINT}";
|
DEBUG "Subvolume is hidden by another mount point: $svol->{PRINT}";
|
||||||
next;
|
next;
|
||||||
|
|
Loading…
Reference in New Issue