From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=36975 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbiAW-0006up-AQ for qemu-devel@nongnu.org; Sat, 08 Jan 2011 18:25:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PbiAU-0000gi-Gt for qemu-devel@nongnu.org; Sat, 08 Jan 2011 18:25:56 -0500 Received: from dd21438.kasserver.com ([85.13.141.110]:53530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PbiAU-0000fr-B9 for qemu-devel@nongnu.org; Sat, 08 Jan 2011 18:25:54 -0500 Message-ID: <4D28F27B.8020805@opensuse.org> Date: Sun, 09 Jan 2011 00:25:47 +0100 From: Martin Mohring MIME-Version: 1.0 Subject: [Qemu-devel] [PATCH] linux-user: fix for loopmount ioctl References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------030104080209040707030001" List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Riku Voipio This is a multi-part message in MIME format. --------------030104080209040707030001 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, I had fixed the loopmount ioctl for linux-user, working correctly for arm, mips, ppc32 and sh4. Martin --------------030104080209040707030001 Content-Type: text/x-patch; name="qemu-0.14-git-linux_user-ioctl_loopmount_fix.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="qemu-0.14-git-linux_user-ioctl_loopmount_fix.patch" From: Martin Mohring In case a chrooted build uses XEN or KVM, a looped mount needs to be done to setup the chroot. The ioctl for loop mount works correctly for arm, mips, ppc32 and sh4, so its now activated. Signed-off-by: Martin Mohring --- diff -u -r qemu-0.14git2011.01.06.2243.orig//linux-user/ioctls.h qemu-0.14git2011.01.06.2243//linux-user/ioctls.h --- qemu-0.14git2011.01.06.2243.orig//linux-user/ioctls.h 2011-01-08 20:50:21.000000000 +0100 +++ qemu-0.14git2011.01.06.2243//linux-user/ioctls.h 2011-01-09 00:17:41.000000000 +0100 @@ -312,10 +312,8 @@ IOCTL(LOOP_CLR_FD, 0, TYPE_INT) IOCTL(LOOP_SET_STATUS, IOC_W, MK_PTR(MK_STRUCT(STRUCT_loop_info))) IOCTL(LOOP_GET_STATUS, IOC_W, MK_PTR(MK_STRUCT(STRUCT_loop_info))) -#if 0 /* These have some problems - not fully tested */ IOCTL(LOOP_SET_STATUS64, IOC_W, MK_PTR(MK_STRUCT(STRUCT_loop_info64))) IOCTL(LOOP_GET_STATUS64, IOC_W, MK_PTR(MK_STRUCT(STRUCT_loop_info64))) -#endif IOCTL(LOOP_CHANGE_FD, 0, TYPE_INT) IOCTL(MTIOCTOP, IOC_W, MK_PTR(MK_STRUCT(STRUCT_mtop))) Only in qemu-0.14git2011.01.06.2243//linux-user: ioctls.h.orig Only in qemu-0.14git2011.01.06.2243//linux-user: ioctls.h~ --------------030104080209040707030001--