1 2 3 4 5 6
#!/usr/bin/env python3 import btrfs with btrfs.FileSystem('/var/lib/machines') as fs: for subvolume in fs.subvolumes():