CopOnTheRun / btrview

A tool to better view btrfs subvolumes
https://pypi.org/project/btrview/
MIT License
27 stars 0 forks source link

<FS_TREE> not being included in the correct snapshot tree when passing certain flags to --include #3

Closed CopOnTheRun closed 6 months ago

CopOnTheRun commented 6 months ago

Not sure what's causing it not to get added to the root when root, undeleted, and unreachable are passed as flags to --include. From the output below it's apparent it's still being included in the forest, but not at the correct root placement.

Example output from my laptop when running sudo btrview --snapshot --include root unreachable deleted:

Label: None
UUID: fc4e1f06-d5b2-413f-8076-0dc1cd267b3f
Snapshots:
  portables
  machines
  swap
  snapshots
  b6768d17-e97e-41c5-8dbc-3c8779a5ae65
  ├── 2024-02-01T00:08:18.180141-05:00
  ├── 2024-02-05T13:21:49.056598-05:00
  ├── 2024-02-18T15:28:54.408456-05:00 
  ├── 2024-02-18T15:30:48.137286-05:00
  ├── 2024-02-21T20:34:42.104945-05:00
  ├── 2024-02-21T20:36:54.591434-05:00
  ├── 2024-02-23T13:54:49.749831-05:00
  ├── 2024-02-23T15:19:21.933669-05:00
  ├── 2024-02-23T15:20:03.985764-05:00
  ├── 2024-02-23T15:20:06.635266-05:00
  └── 2024-02-23T15:20:13.564159-05:00
  e4884c3c-95c8-d742-ad1f-dd182fa62e80
  └── portables-snap-3
      └── portables-snap-4
  <FS_TREE> on: /