Received: from eggs.gnu.org ([140.186.70.92]:37669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsN1Y-00083e-0B for qemu-devel@nongnu.org; Tue, 31 Jan 2012 18:22:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RsN1S-00080q-M1 for qemu-devel@nongnu.org; Tue, 31 Jan 2012 18:22:03 -0500 Received: from cantor2.suse.de ([195.135.220.15]:54123 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RsN1S-0007zF-6T for qemu-devel@nongnu.org; Tue, 31 Jan 2012 18:21:58 -0500 From: Alexander Graf Date: Tue, 31 Jan 2012 22:49:47 +0100 Message-Id: <1328046591-1641-1-git-send-email-agraf@suse.de> Subject: [Qemu-devel] [PATCH 0/4] linux-user: kpartx fixes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Developers Cc: riku.voipio@linaro.org 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(-)