Skip to content

Linux: Make copyFile sparse aware#276

Merged
dmcgowan merged 1 commit intocontainerd:mainfrom
dcantah:linux-cp-sparse-aware
Apr 14, 2026
Merged

Linux: Make copyFile sparse aware#276
dmcgowan merged 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
Contributor

@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.

Comment thread fs/copy_linux.go Outdated
Comment thread fs/copy_linux.go Outdated
Comment thread fs/copy_linux.go Outdated
Comment thread fs/copy_linux.go Outdated
Comment thread fs/copy_linux.go
Comment thread fs/copy_linux.go Outdated
@dcantah dcantah force-pushed the linux-cp-sparse-aware branch from bb1b44c to 40b2854 Compare April 7, 2026 07:52
@dmcgowan
Copy link
Copy Markdown
Member

Rebase to re-run CI with fixes

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 40b2854 to a424ba1 Compare April 13, 2026 07:27
@dcantah
Copy link
Copy Markdown
Member Author

dcantah commented Apr 13, 2026

@dmcgowan done

@dmcgowan dmcgowan merged commit 9426626 into containerd:main Apr 14, 2026
14 checks passed
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.

4 participants