Package: btrfs-progs
Version: 5.6-1
Severity: normal

Dear Maintainer,

If the output of 'btrfs subvolume list ..' is not supposed to be stable (.. or
consistent?) then this bug-report would belong in the wish-list category.

Since the last package update I see that the output format of 'btrfs subvolume 
list -o <path>' has changed.

It now prepends the path of the parent volume to the path of the subvolume, 
which it did not do before.
The parents path does not refer to a mount point or anything else, it is the 
actual name of the parent subvolume.

E.g.:

# btrfs subvolume list -o /
ID 15016 gen 1116509 top level 257 path 
root/.snapshots/monthly/2020-04-01T065201
ID 15771 gen 1168742 top level 257 path 
root/.snapshots/monthly/2020-05-01T065202
....

as opposed to:

# btrfs subvolume list  /
ID 257 gen 1238711 top level 5 path root
ID 15016 gen 1116509 top level 257 path .snapshots/monthly/2020-04-01T065201
ID 15771 gen 1168742 top level 257 path .snapshots/monthly/2020-05-01T065202
....

the "root/" part is not a mounted directory. The only reference to that name is 
this:

# mount | grep root
/dev/vda4 on / type btrfs (rw,relatime,space_cache,subvolid=257,subvol=/root)
                                                                        ^^^^

I am not sure how to handle this correctly without considerable work on my side.

I would expect the path to the subvolume to be displayed the same way, no 
matter if I add -o to the command line to limit the output to sub-subvolumes.

Best Regards
  nautsch



-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.6.0-2-amd64 (SMP w/12 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages btrfs-progs depends on:
ii  libblkid1    2.35.2-2
ii  libc6        2.30-8
ii  libcom-err2  1.45.6-1
ii  libext2fs2   1.45.6-1
ii  liblzo2-2    2.10-2
ii  libuuid1     2.35.2-2
ii  libzstd1     1.4.4+dfsg-3
ii  zlib1g       1:1.2.11.dfsg-2

btrfs-progs recommends no packages.

Versions of packages btrfs-progs suggests:
pn  duperemove  <none>

-- no debconf information

Reply via email to