Re: REQ: btrfs list <subvols only> option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jan 8, 2014, at 11:44 PM, Chris Murphy <lists@xxxxxxxxxxxxxxxxx> wrote:

> 
> On Jan 8, 2014, at 11:27 PM, Chris Murphy <lists@xxxxxxxxxxxxxxxxx> wrote:
> 
>> 
>> On Jan 8, 2014, at 9:06 PM, Alex <alex@xxxxxxxxx> wrote:
>> 
>>> Chris Murphy <lists <at> colorremedies.com> writes:
>>> 
>>>> Specify the mount point for the Btrfs file system and it will list all
>>> subvols on that file system.
>>>> 
>>>> Chris Murphy--
>>> 
>>> Thank you Chris.
>>> 
>>> When I do that on my version of the 3.12 userland:
>>> # btrfs  sub list / -o
>>> returns nothing (with no error), which I wasn't quite expecting because
>>> there *are* other snapshots and subvols below '/'
>> 
>> Not if / is a mounted subvolume that itself contains no subvolumes. / is the OS root, it is not the file system subvol=5 root.
> 
> Hmm, actually you might have found a bug.
> 
> 
> # btrfs subvol list /
> ID 272 gen 4276 top level 5 path boot
> ID 273 gen 4770 top level 5 path root
> ID 274 gen 4680 top level 5 path home
> ID 275 gen 265 top level 5 path boot_ro_installed
> ID 276 gen 280 top level 5 path root_ro_installed
> ID 277 gen 280 top level 5 path home_ro_installed
> ID 283 gen 327 top level 5 path boot_ro_installed+updates
> ID 284 gen 329 top level 5 path root_ro_installed+updates
> ID 285 gen 329 top level 5 path home_ro_installed+updates
> ID 286 gen 399 top level 5 path boot_ro.3
> ID 287 gen 400 top level 5 path root_ro.3
> ID 288 gen 1603 top level 5 path home_ro.3
> ID 473 gen 2105 top level 5 path boot_ro.2
> ID 474 gen 2106 top level 5 path root_ro.2
> ID 475 gen 2107 top level 5 path home_ro.2
> ID 476 gen 4136 top level 5 path home/chris/Downloads/git
> ID 485 gen 3144 top level 5 path boot_ro.1
> ID 486 gen 3145 top level 5 path root_ro.1
> ID 487 gen 3146 top level 5 path home_ro.1
> ID 488 gen 3880 top level 5 path home/chris/Downloads/git/kernel
> 
> 
> # btrfs subvol list / -o
> # btrfs subvol list /home -o
> # btrfs subvol list /home/chris/Downloads/ -o
> # btrfs subvol list /home/chris/Downloads/git -o
> 
> It seems for sure that the last three should have reported ID 476 and 488. And probably the first should also have listed 272 and 274.
> 
> 273 is mounted at /
> 272 is mounted at /boot
> 274 is mounted at /home
> 
> man btrfs "              -o   print only subvolumes bellow specified <path>."
> 
> Small typo while we're at it, below should have one l.

kernel-3.13.0-0.rc6.git0.1.fc21.x86_64
btrfs-progs-3.12-1.fc20.x86_64

Chris Murphy

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux