* [PATCH] ext4: add FITRIM to compat_ioctl.
@ 2011-03-03 7:58 Tao Ma
2011-03-21 3:18 ` Ted Ts'o
0 siblings, 1 reply; 2+ messages in thread
From: Tao Ma @ 2011-03-03 7:58 UTC (permalink / raw)
To: linux-ext4
From: Tao Ma <boyu.mt@taobao.com>
FITRIM isn't added in compat_ioctl. So a 32 bit program can't be executed
in a 64 bit platform. Add it in the compat_ioctl.
Signed-off-by: Tao Ma <boyu.mt@taobao.com>
---
fs/ext4/ioctl.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c
index eb3bc2f..b741809 100644
--- a/fs/ext4/ioctl.c
+++ b/fs/ext4/ioctl.c
@@ -421,6 +421,7 @@ long ext4_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
return err;
}
case EXT4_IOC_MOVE_EXT:
+ case FITRIM:
break;
default:
return -ENOIOCTLCMD;
--
1.6.3.GIT
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ext4: add FITRIM to compat_ioctl.
2011-03-03 7:58 [PATCH] ext4: add FITRIM to compat_ioctl Tao Ma
@ 2011-03-21 3:18 ` Ted Ts'o
0 siblings, 0 replies; 2+ messages in thread
From: Ted Ts'o @ 2011-03-21 3:18 UTC (permalink / raw)
To: Tao Ma; +Cc: linux-ext4
On Thu, Mar 03, 2011 at 03:58:37PM +0800, Tao Ma wrote:
> From: Tao Ma <boyu.mt@taobao.com>
>
> FITRIM isn't added in compat_ioctl. So a 32 bit program can't be executed
> in a 64 bit platform. Add it in the compat_ioctl.
>
> Signed-off-by: Tao Ma <boyu.mt@taobao.com>
Thanks, added to the ext4 patch queue.
- Ted
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-21 3:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-03 7:58 [PATCH] ext4: add FITRIM to compat_ioctl Tao Ma
2011-03-21 3:18 ` Ted Ts'o
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).