summaryrefslogtreecommitdiff
path: root/facts.d/btrfs.py
blob: dcb60014b67e796d703e631f6c94dbdd83b07b81 (plain)
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():