From: Bintian Wang <bintian.wang@linaro.org> Date: Thu, 27 Jun 2013 04:40:08 +0000 (+0800) Subject: vfat: Add compat_ioctl support for VFAT_IOCTL_GET_VOLUME_ID X-Git-Tag: firefly_0821_release~3680^2~4^2~46 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bb00c9ddc5f63be7bb5893ee6aaeabd1f059130f;p=firefly-linux-kernel-4.4.55.git vfat: 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: Ic12ac9d2d46aa50c0597fbedff32de7c8fdeac51 Signed-off-by: Bintian Wang <bintian.wang@linaro.org> [jstultz: commit message tweaks] Signed-off-by: John Stultz <john.stultz@linaro.org> --- diff --git a/fs/fat/dir.c b/fs/fat/dir.c index ddfa4529e6ea..4b775e606fc8 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); }