Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S
slapos.core
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 18
    • Merge Requests 18
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • nexedi
  • slapos.core
  • Merge Requests
  • !139

Merged
Opened Oct 01, 2019 by Jérome Perrin@jerome
  • Report abuse
Report abuse

cli: new "node prune" command

Used to remove shared parts that are no longer referenced.

With shared part installed for example in /opt/slapgrd/shared/name/HASH the heuristic is to assume that if HASH is present in a software's .installed.cfg, then this software is using this shared part. Similar, if HASH is present in /opt/slapgrid/shared/another/ANOTHER_HASH/.slapos*signature then share part another for hash ANOTHER_HASH is using the shared part.

This also have some support to recursively look in instances and if they contain a slapos.cfg file, look for software and shared parts to see if they use the shared part.

In other cases, this shared part can be deleted.

  • Discussion 3
  • Commits 1
  • Changes 3
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View project labels
Reference: nexedi/slapos.core!139

Revert this commit

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this commit

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备14008524号