disk_other.go 1.1 KB

12345678910111213141516171819202122232425262728
  1. //go:build !darwin
  2. package analytic
  3. // otherOSVirtualFilesystems contains additional virtual filesystem types for non-macOS systems
  4. var otherOSVirtualFilesystems = map[string]bool{
  5. // Empty map for other systems - all virtual filesystems are already in the common list
  6. // Could add Linux-specific virtual filesystems here if needed:
  7. // "snap": true, // Snap package mounts
  8. // "squashfs": true, // SquashFS (used by snap)
  9. // "overlay": true, // Docker overlay filesystems (already in common list)
  10. }
  11. // shouldSkipPath checks if a path should be skipped from disk calculation on non-macOS systems
  12. func shouldSkipPath(mountpoint, device string) bool {
  13. // For non-macOS systems, we only do basic filtering
  14. // Most filtering is handled by the virtual filesystem check
  15. // Could add Linux-specific logic here if needed
  16. // For example: skip snap mounts, docker overlay filesystems, etc.
  17. return false
  18. }
  19. // getAdditionalVirtualFilesystems returns additional virtual filesystem types for non-macOS systems
  20. func getAdditionalVirtualFilesystems() map[string]bool {
  21. return otherOSVirtualFilesystems
  22. }