From c6913c611d8e84ba91c6650177e5c1d8269bc694 Mon Sep 17 00:00:00 2001 From: Spencer Grimes Date: Tue, 3 Feb 2026 17:38:30 -0600 Subject: [PATCH] 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 --- detectors/disk_space.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/detectors/disk_space.py b/detectors/disk_space.py index 45796c4..70cc381 100644 --- a/detectors/disk_space.py +++ b/detectors/disk_space.py @@ -48,6 +48,9 @@ def get_all_drives(): # Skip virtual filesystems if not device.startswith("/dev/"): continue + # Skip snap mounts and other system paths + if mount.startswith(("/snap/", "/boot/efi")): + continue # Skip duplicate devices (e.g., bind mounts) if device in seen_devices: continue