[Bug 1335796] Re: btrfs-tools: btrfs subvolume list -o does not operate as documented

James Dingwall james-launchpad at dingwall.me.uk
Fri Jul 4 19:43:25 UTC 2014


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

What it does with the default package:

root at 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 at ubuntu:/export/workspace# btrfs subvolume list -o ubuntu

root at 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 at ubuntu:/export/workspace# btrfs subvolume list -o .
ID 265 gen 221 top level 5 path ubuntu

root at 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 at 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
Foundations Bugs, which is subscribed to btrfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1335796

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

Status in “btrfs-tools” package in Ubuntu:
  New

Bug description:
  btrfs subvolume list -o <path> should list only subvolumes below
  <path> however it lists all subvolumes in the filesystem.  This
  appears to be fixed in upstream with
  http://git.kernel.org/cgit/linux/kernel/git/mason/btrfs-
  progs.git/commit/btrfs-
  list.c?id=4f5ebb3ef55396ef976d3245e2cdf9860680df74.

  This fix is only available in in tag v3.14 and onwards in the btrfs-
  progs git repository.

  # lsb_release -cd
  Description:    Ubuntu 14.04 LTS
  Codename:       trusty

  
  # apt-cache policy btrfs-tools
  btrfs-tools:
    Installed: 3.12-1
    Candidate: 3.12-1
    Version table:
   *** 3.12-1 0
          500 http://10.0.0.1:3142/ubuntu/ trusty/main amd64 Packages
          100 /var/lib/dpkg/status

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



More information about the foundations-bugs mailing list