Is there a way to make a btrfs subvolume tree like what is shown below? (Only subvolumes - no regular directories or files.)
# tree /mnt/1
/mnt/1
├── a
├── snapshot
│ ├── a
│ └── subv
└── subv
└── b
This example is created from a "sample" btrfs with no regular directories or files.
tree <mountpoint> shows all directories and files, not just the subvolumes. Using the -d option shows only directories, which is better, but still shows non-subvolume directories.
So, on an installed system, you get:
# tree /
/
├── bin -> usr/bin
├── boot
│ ├── grub
│ │ ├── fonts
│ │ │ └── unicode.pf2
│ │ ├── grub.cfg
│ │ ├── grub.cfg.example
│ │ ├── grubenv
│ │ ├── i386-pc
│ │ │ ├── 915resolution.mod
│ │ │ ├── acpi.mod
│ │ │ ├── adler32.mod
│ │ │ ├── affs.mod
... <over 242,000 lines snipped>