mirror of https://github.com/digint/btrbk
btrbk: workaround for btrfs-progs < 3.17.3 (returns exit status 0 on errors for "btrfs subvolume show")
parent
5ab5175340
commit
16cfb600b7
|
@ -1,3 +1,7 @@
|
||||||
|
btrbk-current
|
||||||
|
|
||||||
|
* Bugfix: fix crash when using btrfs-progs < 3.17.3 (closes: #24).
|
||||||
|
|
||||||
btrbk-0.19.1
|
btrbk-0.19.1
|
||||||
|
|
||||||
* Use "cgen" for snapshot comparison.
|
* Use "cgen" for snapshot comparison.
|
||||||
|
|
6
btrbk
6
btrbk
|
@ -625,6 +625,12 @@ sub btrfs_subvolume_detail($)
|
||||||
my $ret = run_cmd("$rsh btrfs subvolume show '$path'", non_destructive => 1, catch_stderr => 1);
|
my $ret = run_cmd("$rsh btrfs subvolume show '$path'", non_destructive => 1, catch_stderr => 1);
|
||||||
return undef unless(defined($ret));
|
return undef unless(defined($ret));
|
||||||
|
|
||||||
|
# workaround for btrfs-progs < 3.17.3 (returns exit status 0 on errors)
|
||||||
|
if($ret =~ /^ERROR: (.*)/) {
|
||||||
|
$err = $1;
|
||||||
|
return undef;
|
||||||
|
}
|
||||||
|
|
||||||
my $real_path;
|
my $real_path;
|
||||||
if($ret =~ /^($file_match)/) {
|
if($ret =~ /^($file_match)/) {
|
||||||
$real_path = $1;
|
$real_path = $1;
|
||||||
|
|
Loading…
Reference in New Issue