Commit b928c6b
ioctl: Use raw opcodes to match kernel definitions
Replace rustix ioctl macros with hardcoded values for LOOP_CTL_GET_FREE
and LOOP_CONFIGURE. The macro-generated opcodes don't match the kernel's
expected values, causing EINVAL errors. The older kernels (even new ones
6.18 for that matter) define these as raw numbers rather than following
the modern _IOW/_IOR conventions
I have tested this on Fedora 42 (6.18), and CI failure occured on Ubuntu
22.04. I won't if this is distro related and if different distros have
different headers
Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>1 parent 022c9c6 commit b928c6b
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
0 commit comments