Skip to content

Conversation

giuseppe
Copy link
Member

@giuseppe giuseppe commented Jun 6, 2025

move the check for a contiguous mapping to overlay when a mount program is specified, since this is required only for fuse-overlayfs, not native idmapped mounts.

Closes: https://issues.redhat.com/browse/RHEL-94967
Closes: #2345

@openshift-ci openshift-ci bot added the approved label Jun 6, 2025
@giuseppe giuseppe force-pushed the use-idmap-not-contiguous branch from 70684ab to e051598 Compare June 6, 2025 09:03
@giuseppe giuseppe force-pushed the use-idmap-not-contiguous branch from e051598 to 59a14f8 Compare June 6, 2025 11:07
Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

openshift-ci bot commented Jun 6, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: giuseppe, Luap99

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Collaborator

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

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

I 100% don’t understand the logic, but I also 100% support making the logic consistent in both locations.

So… ACK?

@giuseppe giuseppe force-pushed the use-idmap-not-contiguous branch from 59a14f8 to c41981d Compare June 9, 2025 07:01
giuseppe added 3 commits June 9, 2025 09:01
The `SupportsShifting` method signature has been updated
to include `uidmap` and `gidmap` parameters.

Previously, a driver could only declare general support
for shifting.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
this check was initially added for fuse-overlayfs, but it should be
overlay decision not centralized in store.go.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
The contiguity of ID mappings is a requirement for fuse-overlayfs, do
not impose it for the native kernel driver.

Closes: containers#2345
Closes: https://issues.redhat.com/browse/RHEL-94967

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
@giuseppe giuseppe force-pushed the use-idmap-not-contiguous branch from c41981d to ffb4f15 Compare June 9, 2025 07:01
@giuseppe
Copy link
Member Author

giuseppe commented Jun 9, 2025

thanks, addressed the comments and pushed a new version

@mtrmac
Copy link
Collaborator

mtrmac commented Jun 9, 2025

/lgtm

Thanks!

@rhatdan
Copy link
Member

rhatdan commented Jun 9, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Jun 9, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit 35c85ee into containers:main Jun 9, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Avoiding inode exhaustion by supporting idmapped mounts without contiguous mappings
4 participants