Skip to content

Commit

Permalink
ext4: add FITRIM to compat_ioctl.
Browse files Browse the repository at this point in the history
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>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
  • Loading branch information
Tao Ma authored and Theodore Ts'o committed Mar 21, 2011
1 parent d67d121 commit a56e69c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/ext4/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,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;
Expand Down

0 comments on commit a56e69c

Please sign in to comment.