summaryrefslogtreecommitdiff
path: root/facts.d/btrfs.py
diff options
context:
space:
mode:
Diffstat (limited to 'facts.d/btrfs.py')
-rw-r--r--facts.d/btrfs.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/facts.d/btrfs.py b/facts.d/btrfs.py
new file mode 100644
index 0000000..dcb6001
--- /dev/null
+++ b/facts.d/btrfs.py
@@ -0,0 +1,6 @@
+#!/usr/bin/env python3
+
+import btrfs
+
+with btrfs.FileSystem('/var/lib/machines') as fs:
+ for subvolume in fs.subvolumes():