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(-)