Skip to content

fix: donate EROFS submount FDs in goferless mode#13597

Open
tianyuzhou95 wants to merge 1 commit into
google:masterfrom
tianyuzhou95:albert/erofs-mount-fix
Open

fix: donate EROFS submount FDs in goferless mode#13597
tianyuzhou95 wants to merge 1 commit into
google:masterfrom
tianyuzhou95:albert/erofs-mount-fix

Conversation

@tianyuzhou95

@tianyuzhou95 tianyuzhou95 commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

When an EROFS rootfs runs without a gofer process, runsc still has to provide image FDs for EROFS config mounts. The goferless path only opened the rootfs image, so boot could run out of gofer FDs while preparing submounts.

This patch donates EROFS submount image FDs in config mount order and adds a test to cover such case.

Comment thread runsc/container/container.go Outdated
When an EROFS rootfs runs without a gofer process, runsc still has
to provide image FDs for EROFS config mounts. The goferless path only
opened the rootfs image, so boot could run out of gofer FDs while
preparing submounts.

This patch donates EROFS submount image FDs in config mount order and
adds a test to cover such case.

Signed-off-by: Tianyu Zhou <albert.zty@antgroup.com>
@tianyuzhou95 tianyuzhou95 force-pushed the albert/erofs-mount-fix branch from 96172b3 to 87177a7 Compare July 1, 2026 00:45
@tianyuzhou95 tianyuzhou95 requested a review from EtiennePerot July 3, 2026 05:39
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