Skip to content

linux-user: kpartx fixes

Alexander Graf qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4linux-user: implement device mapper ioctlslinux-user/ioctls.h linux-user/syscall.c linux-user/syscall_defs.h +1 more+313 -01 reply
2/4linux-user: add struct old_dev_t compatlinux-user/syscall_types.h thunk.c thunk.h+58 -20 replies
2/4linux-user: add struct old_dev_t compatlinux-user/syscall_types.h thunk.c thunk.h+58 -20 replies
3/4linux-user: fix BLK ioctl argumentslinux-user/syscall_defs.h+5 -30 replies
4/4linux-user: add BLKSSZGET ioctl wrapperlinux-user/ioctls.h+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/4] linux-user: kpartx fixes

As part of our OBS build process, we also want to be able to create kiwi images for ARM on x86 hardware. One of the crucial bits there is the kpartx tool, since that allows us to map images on the fly through device mapper.

So this patch set goes in and implements all the device mapper ioctls and fixes a few hickups to actually make things work along the way. With this applied, I can successfully run kpartx -av on an image file and have that available in the system. As far as possible, I also verified all the other ioctls to actually work.

Alex

Alexander Graf (4):
linux-user: implement device mapper ioctls
linux-user: add struct old_dev_t compat
linux-user: fix BLK ioctl arguments
linux-user: add BLKSSZGET ioctl wrapper

 linux-user/ioctls.h        |   34 +++++++
 linux-user/syscall.c       |  226 ++++++++++++++++++++++++++++++++++++++++++++
 linux-user/syscall_defs.h  |   26 +++++-
 linux-user/syscall_types.h |   40 ++++++++-
 thunk.c                    |   28 ++++++
 thunk.h                    |   28 ++++++
 6 files changed, 377 insertions(+), 5 deletions(-)