aboutsummaryrefslogtreecommitdiff
path: root/examples/mdev.conf
diff options
context:
space:
mode:
authorWouter Franken <wouter.franken_ext@softathome.com>2026-01-20 10:28:27 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2026-01-26 05:43:17 +0100
commit4e82d99460d36ab09b651eb90c77e7cd13fb368a (patch)
tree812c1363c9b276c39e09bd013508f18dc1f04563 /examples/mdev.conf
parent4da1badf1319c008397ec258f0601f5014332cb3 (diff)
downloadbusybox-w32-4e82d99460d36ab09b651eb90c77e7cd13fb368a.tar.gz
busybox-w32-4e82d99460d36ab09b651eb90c77e7cd13fb368a.tar.bz2
busybox-w32-4e82d99460d36ab09b651eb90c77e7cd13fb368a.zip
libbb/loop: fix existence check for LOOP_CONFIGURE ioctl
The LOOP_CONFIGURE ioctl is supported in 5.8 kernels and up. To have backwards compatibility there is a config option CONFIG_TRY_LOOP_CONFIGURE that will check if the ioctl exists and if not fall back to old way of configuring loop devices. Normally errno will be set to EINVAL when this ioctl does not exist. However, when kernel config CONFIG_COMPAT is enabled, then compat_ioctl is called. In that case -ENOIOCTLCMD is returned by loop device driver and generic ioctl wrapper will set errno to ENOTTY. Because busybox does not expect this it will fail to mount loop devices in this case. This patch fixes the check for the existence of the ioctl LOOP_CONFIGURE by checking if errno is one of both: EINVAL or ENOTTY. function old new delta set_loop 809 821 +12 Signed-off-by: Wouter Franken <wouter.franken_ext@softathome.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'examples/mdev.conf')
0 files changed, 0 insertions, 0 deletions