diff options
author | Bintian Wang <bintian.wang@linaro.org> | 2013-06-30 20:34:24 +0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2013-09-26 00:27:26 +0000 |
commit | 79245d37165aad2e57b1919defdd124639ddf55a (patch) | |
tree | 130bdebbd4f7e5ba186d5df7441e33bd7f8d34ac /fs | |
parent | 2c7011b8323721307f74cec6eec28430cfee3e7e (diff) |
Add compat_ioctl support for VFAT_IOCTL_GET_VOLUME_ID
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: I3e93dfcc1e7a364a6b11bc7e3f5f210e82f306ed
Signed-off-by: Bintian Wang <bintian.wang@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'fs')
-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); } |