Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loop: Use LOOP_CTL_ADD instead of mknod for dev creation #1504

Merged
merged 1 commit into from
Apr 6, 2023

Conversation

dtrudg
Copy link
Member

@dtrudg dtrudg commented Apr 4, 2023

Description of the Pull Request (PR):

Perform loop device creation via the LOOP_CTL_ADD ioctl against /dev/loop-control.

This avoids hitting an error in the latest kernels that include a change in handling of loop device creation when max_loop is unset.

Our target distros now all provide /dev/loop-control, so we are free to make this change.

Also contains minor fixes to correct an error/debug message, and add an earlier continue in case of failure to open loop device in attachLoop.

This fixes or addresses the following GitHub issues:

Before submitting a PR, make sure you have done the following:

@dtrudg dtrudg added the backport Backport this to stable version label Apr 4, 2023
@dtrudg dtrudg self-assigned this Apr 4, 2023
@dtrudg dtrudg added the ci:e2e label Apr 4, 2023
@dtrudg dtrudg marked this pull request as ready for review April 4, 2023 14:29
Perform loop device creation via the LOOP_CTL_ADD ioctl against
/dev/loop-control.

This avoids hitting an error in the latest kernels that include a
change in handling of loop device creation when max_loop is unset.

Our target distros now all provide /dev/loop-control, so we are
free to make this change.

Also contains minor fixes to correct an error/debug message, and add
an earlier continue in case of failure to open loop device in
attachLoop.

Fixes sylabs#1499
@dtrudg dtrudg merged commit 268651e into sylabs:main Apr 6, 2023
1 check passed
@dtrudg dtrudg deleted the loop-control branch April 6, 2023 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Backport this to stable version ci:e2e
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No loop devices available for multiple singularity shells in specific kernel
2 participants