Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760807AbZAOQUZ (ORCPT ); Thu, 15 Jan 2009 11:20:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754212AbZAOQUJ (ORCPT ); Thu, 15 Jan 2009 11:20:09 -0500 Received: from smtp.nokia.com ([192.100.105.134]:63409 "EHLO mgw-mx09.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752228AbZAOQUH (ORCPT ); Thu, 15 Jan 2009 11:20:07 -0500 Subject: [PATCH] UBI: add ioctl compatibility From: Artem Bityutskiy Reply-To: dedekind@infradead.org To: Arnd Bergmann Cc: Geert Uytterhoeven , linux-mtd , LKML Content-Type: text/plain; charset="UTF-8" Date: Thu, 15 Jan 2009 18:19:41 +0200 Message-Id: <1232036381.25068.10.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.24.2 (2.24.2-3.fc10) Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 15 Jan 2009 16:19:12.0089 (UTC) FILETIME=[00691490:01C9772D] X-Nokia-AV: Clean Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1747 Lines: 63 Hi Arnd, would you please glance if this patch all-right? From: Artem Bityutskiy Subject: [PATCH] UBI: add ioctl compatibility UBI ioctl's do not work when running 64-bit kernel and 32-bit user-land. Fix this by adding ioctl translation etries to fs/compat_ioctl.c Reported-by: Geert Uytterhoeven Signed-off-by: Artem Bityutskiy --- fs/compat_ioctl.c | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index 5235c67..f1e00e1 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c @@ -95,6 +95,7 @@ #include #include #include +#include #include #include @@ -2423,6 +2424,19 @@ COMPATIBLE_IOCTL(MEMGETREGIONCOUNT) COMPATIBLE_IOCTL(MEMGETREGIONINFO) COMPATIBLE_IOCTL(MEMGETBADBLOCK) COMPATIBLE_IOCTL(MEMSETBADBLOCK) +/* UBI */ +COMPATIBLE_IOCTL(UBI_IOCMKVOL) +ULONG_IOCTL(UBI_IOCRMVOL) +COMPATIBLE_IOCTL(UBI_IOCRSVOL) +COMPATIBLE_IOCTL(UBI_IOCRNVOL) +COMPATIBLE_IOCTL(UBI_IOCATT) +ULONG_IOCTL(UBI_IOCDET) +ULONG_IOCTL(UBI_IOCVOLUP) +ULONG_IOCTL(UBI_IOCEBER) +ULONG_IOCTL(UBI_IOCEBCH) +ULONG_IOCTL(UBI_IOCEBMAP) +ULONG_IOCTL(UBI_IOCEBUNMAP) +ULONG_IOCTL(UBI_IOCEBISMAP) /* NBD */ ULONG_IOCTL(NBD_SET_SOCK) ULONG_IOCTL(NBD_SET_BLKSIZE) -- 1.6.0.6 -- Best regards, Artem Bityutskiy (Битюцкий Артём) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/