Skip to content

[Request]: Relinquish freed filesystem blocks back to macOS. #1402

Closed

Description

@jglogan

Feature or enhancement request details

container root filesystems and named volumes use AFPS files containing sparse ext4 disk images.

If a container runs long enough and unlinks files along the way, more and more of the sparse image will show as in use on the host, even for fs blocks that are free after previously having been used.

Virtualization Framework will recover blocks that the guest trims using the FSTRIM ioctl

We should:

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    facet/storage
    on Apr 7, 2026
  2. added theissue type on Apr 7, 2026
  3. jglogan commented on Jun 20, 2026

    @jglogan
    ContributorAuthor

    apple/containerization#700 added the required capability in containerization.

    Closing this in favor of #1763 which describes the one-shot container clean command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    facet/storage

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions