Debian Codegraph @

examples/show_orphaned_subvols.py

raw symbols SCIP
1 #!/usr/bin/python3
2
3 import btrfs
4 import sys
5
6 if len(sys.argv) < 2:
7 print("Usage: {} <mountpoint>".format(sys.argv[0]))
8 sys.exit(1)
9
10 with btrfs.FileSystem(sys.argv[1]) as fs:
11 print(fs.orphan_subvol_ids())