>From the man page:
-o print only subvolumes bellow specified <path>. [sic]

What it does with the default package:

root@ubuntu:/export/workspace# btrfs subvolume list -o .
ID 265 gen 221 top level 5 path ubuntu
ID 266 gen 218 top level 265 path ubuntu/precise
ID 268 gen 218 top level 266 path ubuntu/precise/precise
ID 271 gen 218 top level 265 path ubuntu/trusty
ID 273 gen 218 top level 271 path ubuntu/trusty/trusty

root@ubuntu:/export/workspace# btrfs subvolume list -o ubuntu

root@ubuntu:/export/workspace# btrfs subvolume list -o ubuntu/precise


The result of apt-get source btrfs-tools built with the mentioned diff (and 
matching the behaviour of 3.14.2 btrfs-progs release)

root@ubuntu:/export/workspace# btrfs subvolume list -o .
ID 265 gen 221 top level 5 path ubuntu

root@ubuntu:/export/workspace# btrfs subvolume list -o ubuntu
ID 266 gen 218 top level 265 path ubuntu/precise
ID 271 gen 218 top level 265 path ubuntu/trusty

root@ubuntu:/export/workspace# btrfs subvolume list -o ubuntu/precise
ID 268 gen 218 top level 266 path ubuntu/precise/precise


(There is also perhaps an argument that below might mean recursively below 
rather than only one level but that is a separate issue.)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1335796

Title:
  btrfs-tools: btrfs subvolume list -o does not operate as documented

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/btrfs-tools/+bug/1335796/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to