How do I list all subvolumes / snapshots on a btrfs filesystem in parent / child hierarchy?

I want something like the tree command for directories/files, but for parent/child subvolumes with subvolume ID and the location of the snapshot on disk.

  • This mostly unrelated question is about listing subvolumes based on filesystem location, rather than parent/child relationship. – Tom Hale Aug 10 '17 at 3:17
  • I don't know that there is a provided command for it but a combination of list/show should let you achieve that. – Ginnungagap Aug 10 '17 at 6:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.