mirror of
https://github.com/KernelSU-Next/loopdev.git
synced 2026-11-16 22:51:34 +00:00
The function currently writes a value of 16 to lo_flags, but 16 is the value for
LO_FLAGS_DIRECT_IO. The intended flag, LO_FLAGS_PARTSCAN, has a value of 8 [0].
It looks like this was a regression when deprecating attach_with_partscan[1],
which had the correct value of 8. That same commit introduces this bug.
[0] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/loop.h?h=v5.15#n25
[1]
|
History
|
|
|---|---|---|
| .. | ||
| lib.rs | ||