summaryrefslogtreecommitdiffstats
path: root/linux-user/ioctls.h
diff options
context:
space:
mode:
authorAlexander Graf2014-08-22 13:15:50 +0200
committerRiku Voipio2014-10-06 20:52:45 +0200
commita59b5e35d181599bc4114ceff3547ef47e713689 (patch)
tree83e552a747c3ab3736ebbff462311b2f8042a03d /linux-user/ioctls.h
parentlinux-user: Enable epoll_pwait syscall for ARM (diff)
downloadqemu-a59b5e35d181599bc4114ceff3547ef47e713689.tar.gz
qemu-a59b5e35d181599bc4114ceff3547ef47e713689.tar.xz
qemu-a59b5e35d181599bc4114ceff3547ef47e713689.zip
linux-user: Convert blkpg to use a special subop handler
The blkpg ioctl can take different payloads depending on the opcode in its payload structure. Create a new special ioctl handler that can only deal with partition style ones for now. This patch fixes running parted for me. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user/ioctls.h')
-rw-r--r--linux-user/ioctls.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h
index 609b27cf0b..e672655100 100644
--- a/linux-user/ioctls.h
+++ b/linux-user/ioctls.h
@@ -78,7 +78,8 @@
IOCTL(BLKRAGET, IOC_R, MK_PTR(TYPE_LONG))
IOCTL(BLKSSZGET, IOC_R, MK_PTR(TYPE_LONG))
IOCTL(BLKBSZGET, IOC_R, MK_PTR(TYPE_INT))
- IOCTL(BLKPG, IOC_W, MK_PTR(MK_STRUCT(STRUCT_blkpg_ioctl_arg)))
+ IOCTL_SPECIAL(BLKPG, IOC_W, do_ioctl_blkpg,
+ MK_PTR(MK_STRUCT(STRUCT_blkpg_ioctl_arg)))
#ifdef FIBMAP
IOCTL(FIBMAP, IOC_W | IOC_R, MK_PTR(TYPE_LONG))
#endif