mirror of https://github.com/digint/btrbk
btrbk: fix resolved ambiguity in raw table formats
rename snapshot_path -> snapshot_subvolume rename target_path -> target_subvolume These point to subvolumes, not paths containing subvolumes.pull/411/head
parent
2347163780
commit
9278211123
9
btrbk
9
btrbk
|
@ -220,10 +220,9 @@ my %table_formats = (
|
||||||
},
|
},
|
||||||
|
|
||||||
resolved => {
|
resolved => {
|
||||||
# NOTE: snapshot_path is ambigous and does NOT print SUBVOL_PATH here (should be snapshot_subvolume, left as-is for compatibility)
|
|
||||||
table => [ qw( -source_host -source_port source_subvolume snapshot_subvolume status -target_host -target_port target_subvolume ) ],
|
table => [ qw( -source_host -source_port source_subvolume snapshot_subvolume status -target_host -target_port target_subvolume ) ],
|
||||||
long => [ qw( -source_host -source_port source_subvolume snapshot_subvolume status -target_host -target_port target_subvolume target_type ) ],
|
long => [ qw( -source_host -source_port source_subvolume snapshot_subvolume status -target_host -target_port target_subvolume target_type ) ],
|
||||||
raw => [ qw( type source_url source_host source_port source_subvolume snapshot_path snapshot_name status target_url target_host target_port target_path target_type source_rsh target_rsh ) ],
|
raw => [ qw( type source_url source_host source_port source_subvolume snapshot_subvolume snapshot_name status target_url target_host target_port target_subvolume target_type source_rsh target_rsh ) ],
|
||||||
},
|
},
|
||||||
|
|
||||||
snapshots => {
|
snapshots => {
|
||||||
|
@ -234,18 +233,16 @@ my %table_formats = (
|
||||||
},
|
},
|
||||||
|
|
||||||
backups => { # same as resolved, except for single_column
|
backups => { # same as resolved, except for single_column
|
||||||
# NOTE: snapshot_path is ambigous and does NOT print SUBVOL_PATH here (should be snapshot_subvolume, left as-is for compatibility)
|
|
||||||
table => [ qw( -source_host -source_port source_subvolume snapshot_subvolume status -target_host -target_port target_subvolume ) ],
|
table => [ qw( -source_host -source_port source_subvolume snapshot_subvolume status -target_host -target_port target_subvolume ) ],
|
||||||
long => [ qw( -source_host -source_port source_subvolume snapshot_subvolume status -target_host -target_port target_subvolume target_type ) ],
|
long => [ qw( -source_host -source_port source_subvolume snapshot_subvolume status -target_host -target_port target_subvolume target_type ) ],
|
||||||
raw => [ qw( type source_url source_host source_port source_subvolume snapshot_path snapshot_name status target_url target_host target_port target_path target_type source_rsh target_rsh ) ],
|
raw => [ qw( type source_url source_host source_port source_subvolume snapshot_subvolume snapshot_name status target_url target_host target_port target_subvolume target_type source_rsh target_rsh ) ],
|
||||||
single_column => [ qw( target_url ) ],
|
single_column => [ qw( target_url ) ],
|
||||||
},
|
},
|
||||||
|
|
||||||
latest => { # same as resolved, except hiding target if not present
|
latest => { # same as resolved, except hiding target if not present
|
||||||
# NOTE: snapshot_path is ambigous and does NOT print SUBVOL_PATH here (should be snapshot_subvolume, left as-is for compatibility)
|
|
||||||
table => [ qw( -source_host -source_port source_subvolume snapshot_subvolume status -target_host -target_port -target_subvolume ) ],
|
table => [ qw( -source_host -source_port source_subvolume snapshot_subvolume status -target_host -target_port -target_subvolume ) ],
|
||||||
long => [ qw( -source_host -source_port source_subvolume snapshot_subvolume status -target_host -target_port -target_subvolume -target_type ) ],
|
long => [ qw( -source_host -source_port source_subvolume snapshot_subvolume status -target_host -target_port -target_subvolume -target_type ) ],
|
||||||
raw => [ qw( type source_url source_host source_port source_subvolume snapshot_path snapshot_name status target_url target_host target_port target_path target_type source_rsh target_rsh ) ],
|
raw => [ qw( type source_url source_host source_port source_subvolume snapshot_subvolume snapshot_name status target_url target_host target_port target_subvolume target_type source_rsh target_rsh ) ],
|
||||||
},
|
},
|
||||||
|
|
||||||
stats => {
|
stats => {
|
||||||
|
|
Loading…
Reference in New Issue