Skip snap mounts in disk space detector

Filter out /snap/* and /boot/efi from disk monitoring on Linux.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-03 17:38:30 -06:00
parent 36aecb1fc9
commit c6913c611d

View File

@@ -48,6 +48,9 @@ def get_all_drives():
# Skip virtual filesystems # Skip virtual filesystems
if not device.startswith("/dev/"): if not device.startswith("/dev/"):
continue continue
# Skip snap mounts and other system paths
if mount.startswith(("/snap/", "/boot/efi")):
continue
# Skip duplicate devices (e.g., bind mounts) # Skip duplicate devices (e.g., bind mounts)
if device in seen_devices: if device in seen_devices:
continue continue