Skip to content

feat(remove-module): reclaim space from disks - #984

Merged
DavidePrincipi merged 4 commits into
mainfrom
feat-7665-2
Nov 18, 2025
Merged

DavidePrincipi merged 4 commits into
mainfrom
feat-7665-2

Conversation

@DavidePrincipi

Copy link
Copy Markdown
Member

Remove module data also from additional disks.

Refs NethServer/dev#7665

Remove module data also from additional disks.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR extends the remove-module action to reclaim space from additional storage volumes when removing rootless modules. Previously, only the module's home directory was deleted; now the implementation also identifies and removes module data from any configured additional disks.

Key changes:

  • Introduces volume discovery using python3 -magent.volumes to identify module data on additional disks
  • Implements parallel deletion of home directory and volume paths to improve performance for large datasets
  • Adds safety validation to ensure only paths matching expected patterns are removed

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@DavidePrincipi
DavidePrincipi merged commit 63a0cce into main Nov 18, 2025
@DavidePrincipi
DavidePrincipi deleted the feat-7665-2 branch November 18, 2025 15:46
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.

3 participants