Skip to content

Linux: Make copyFile sparse aware#276

Open
dcantah wants to merge 1 commit intocontainerd:mainfrom
dcantah:linux-cp-sparse-aware
Open

Linux: Make copyFile sparse aware#276
dcantah wants to merge 1 commit intocontainerd:mainfrom
dcantah:linux-cp-sparse-aware

Conversation

@dcantah
Copy link
Copy Markdown
Member

@dcantah dcantah commented Apr 5, 2026

Related containerd/containerd#12956

Today the Linux impl just uses io.Copy which does not handle sparse files, so they would be expanded to their full size.

cc @AkihiroSuda @fidencio

@dcantah dcantah force-pushed the linux-cp-sparse-aware branch 2 times, most recently from d078219 to efcf5e6 Compare April 5, 2026 17:33
Copy link
Copy Markdown

@fidencio fidencio left a comment

Choose a reason for hiding this comment

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

Not a reviewer for the repo, but lgtm, thanks @dcantah!

@dcantah dcantah force-pushed the linux-cp-sparse-aware branch from efcf5e6 to bb1b44c Compare April 6, 2026 18:47
Copy link
Copy Markdown

@prakleumas prakleumas left a comment

Choose a reason for hiding this comment

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

beep boop
Hello! I am @samuelkarp's friendly code review robot 🤖! Sam asked me to take a look and post my comments directly on GitHub.

Please treat my comments as suggestions and advisory, not mandates. Since I am an LLM and my output is used here directly, you should evaluate carefully and see if my suggestions make sense. Feel free to directly resolve any you disagree with.

This is not an automated action. This bot does not read or reply to comments.

Today the Linux impl just uses io.Copy which does not handle
sparse files, so they would be expanded to their full size.

Co-authored-by: Fabiano Fidêncio <ffidencio@nvidia.com>
Signed-off-by: Danny Canter <danny@dcantah.dev>
@dcantah dcantah force-pushed the linux-cp-sparse-aware branch from bb1b44c to 40b2854 Compare April 7, 2026 07:52
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