Open SuchAFuriousDeath opened 2 months ago
Strange. I though FreeBSD is going to ignore the offset instead of using its negative value.
Ignore it where?
I don't know. It just my guess because a read/write to a device should not requires an offset.
I'm not saying it requires an offset. But the uio struct contains an offset field and in pwritev FreeBSD allows negative offsets (and we do too)
I'm not saying it requires an offset. But the uio struct contains an offset field and in pwritev FreeBSD allows negative offsets (and we do too)
The real purpose of this code should be not allowed a negative offset for non-device. What I suspect it FreeBSD will ignore the offset when reading or writing a device.
Sure, but how does that relate to this issue? :D You left a todo!() in the code and we have to deal with it somehow.
What we need to do is find a device that use this offset when reading or writing. If none of the devices used it we can remove it from the parameters.
I remember from somewhere that FreeBSD allows negative offsets for devices, but our offset field is currently an u64.