diff options
| author | Peter Maydell | 2016-07-05 17:36:29 +0200 |
|---|---|---|
| committer | Riku Voipio | 2016-07-19 14:23:16 +0200 |
| commit | f2c2fb50be13aca9c449d9156817c915d9cd2acb (patch) | |
| tree | bb0bba272cbe33de2107ca3105e7bc24d6687a3f /linux-user/mips | |
| parent | linux-user: Correct type for BLKSSZGET (diff) | |
| download | qemu-f2c2fb50be13aca9c449d9156817c915d9cd2acb.tar.gz qemu-f2c2fb50be13aca9c449d9156817c915d9cd2acb.tar.xz qemu-f2c2fb50be13aca9c449d9156817c915d9cd2acb.zip | |
linux-user: Correct type for LOOP_GET_STATUS{,64} ioctls
The LOOP_GET_STATUS and LOOP_GET_STATUS64 ioctls were incorrectly
defined as IOC_W rather than IOC_R, which meant we weren't
correctly copying the information back from the kernel to the guest.
The loop_info64 structure definition was also missing a member
and using the wrong type for several 32-bit fields.
In particular, this meant that "kpartx -d image.img" didn't work
and "losetup -a" behaved strangely. Correct the ioctl type definitions.
Reported-by: Chanho Park <chanho61.park@samsung.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user/mips')
0 files changed, 0 insertions, 0 deletions
