apple / apple/containerization

[Bug]: Files larger than 128 GiB cannot be unpacked into an ext4 image

Open
#921 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
8.9k
Forks
359
Avg merge
2d 20h
Merged PRs (30d)
13

Description

### I have done the following

- [x] I have searched the existing issues
- [x] If possible, I've reproduced the issue using the 'main' branch of this project

### Steps to reproduce

1. Create an image with a single file above 128 GiB.
2. Run:
```
bin/container image load --input large-image.tar
```

### Current behavior

```
Error: 137439084544 exceeds max file size (128 GiB)
```

### Expected behavior

No error, but only if unpacking wouldn't run out of disk space.

### Environment

```markdown
OS: macOS
```

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with `bin/container image load --input large-image.tar`, then trace the image-unpacking path for the 128 GiB file-size limit and ext4 image handling. Done means a file larger than 128 GiB can be unpacked when disk space allows, while insufficient disk space still produces an error.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.