Skip to content

fix: report accurate storage usage and disk ownership - #5

Merged
alvins82 merged 1 commit into
mainfrom
agent/storage-usage-and-disk-ownership
Aug 13, 2026
Merged

alvins82 merged 1 commit into
mainfrom
agent/storage-usage-and-disk-ownership

Conversation

@alvins82

Copy link
Copy Markdown
Owner

Summary

  • Traverse nested lsblk trees so filesystems under partitions and LVM logical volumes appear in Storage Manager.
  • Report actual mounted filesystem used and available space for dashboard and USB storage statistics.
  • Preserve the physical disk model and path for each storage entry.
  • Add coverage for nested mounts and logical volumes.

The previous behavior treated a physical disk's allocated partition/LVM size as used space and missed the nested root filesystem. This change reports filesystem usage from the mounted filesystems themselves.

Validation:

  • GOOS=linux GOARCH=amd64 go build ./...
  • GOOS=linux GOARCH=amd64 go test -c ./service
  • git diff --check

This draft PR intentionally targets alvins82/CasaOS-LocalStorage only; it does not target IceWhaleTech upstream.

@alvins82
alvins82 marked this pull request as ready for review August 13, 2026 03:30
@alvins82
alvins82 merged commit 10ca696 into main Aug 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant