Permalink
Browse files
btrbk: action-ls: add --format=rel, prints "subvolume_path" and "subv…
- Loading branch information
Showing
with
5 additions
and
1 deletion.
-
+5
−1
btrbk
|
|
@@ -218,8 +218,9 @@ my %table_formats = ( |
|
|
}, |
|
|
|
|
|
fs_list => { table => [ qw( mount_source id path ) ], |
|
|
rel => [ qw( mount_source mount_point path subvolume_path subvolume_rel_path ) ], |
|
|
long => [ qw( mount_point mount_source id top_level cgen gen uuid parent_uuid received_uuid flags path ) ], |
|
|
raw => [ qw( mount_point mount_source id top_level cgen gen uuid parent_uuid received_uuid readonly path ) ], |
|
|
raw => [ qw( mount_point mount_source mount_subvolid id top_level cgen gen uuid parent_uuid received_uuid readonly path subvolume_path ) ], |
|
|
}, |
|
|
); |
|
|
|
|
|
@@ -5169,6 +5170,9 @@ MAIN: |
|
|
%{$svol->{node}}, # copy node |
|
|
mount_point => $svol->{VINFO_MOUNTPOINT}{PATH}, |
|
|
mount_source => $svol->{node}{TREE_ROOT}{host_mount_source}, |
|
|
mount_subvolid => $mnt->{MNTOPS}{subvolid}, |
|
|
subvolume_path => $svol->{node}{path}, |
|
|
subvolume_rel_path => $svol->{node}{REL_PATH}, |
|
|
path => $svol->{PATH}, |
|
|
flags => ($svol->{node}{readonly} ? "readonly" : undef), |
|
|
}; |
|
|
|