diff options
author | Bintian Wang <bintian.wang@linaro.org> | 2013-06-27 12:40:08 +0800 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2013-07-02 14:50:08 -0700 |
commit | bb00c9ddc5f63be7bb5893ee6aaeabd1f059130f (patch) | |
tree | 7b4b33b78e2dfaed740f11b9f14a6916185da921 | |
parent | 31366efc298e297b72db4e83a1822aa3eff15e81 (diff) |
vfat: Add compat_ioctl support for VFAT_IOCTL_GET_VOLUME_IDtracking-linaro-android-3.10-llct-20130715.0tracking-linaro-android-3.10-llct-20130708.0
Add VFAT_IOCTL_GET_VOLUME_ID to vfat dir compat_ioctl() interface,
which enable you read vfat volume ID from a 32bit app on a 64bit
kernel
Change-Id: Ic12ac9d2d46aa50c0597fbedff32de7c8fdeac51
Signed-off-by: Bintian Wang <bintian.wang@linaro.org>
[jstultz: commit message tweaks]
Signed-off-by: John Stultz <john.stultz@linaro.org>
-rw-r--r-- | fs/fat/dir.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/fat/dir.c b/fs/fat/dir.c index ddfa4529e6e..4b775e606fc 100644 --- a/fs/fat/dir.c +++ b/fs/fat/dir.c @@ -841,6 +841,8 @@ static long fat_compat_dir_ioctl(struct file *filp, unsigned cmd, short_only = 0; both = 1; break; + case VFAT_IOCTL_GET_VOLUME_ID: + return fat_ioctl_volume_id(inode); default: return fat_generic_ioctl(filp, cmd, (unsigned long)arg); } |