forked from sylabs/singularity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
loop: Use LOOP_CTL_ADD instead of mknod for dev creation
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
- Loading branch information
Showing
2 changed files
with
63 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters