From 5a171c826ee593dcefe41333faea56ce59cbe2be Mon Sep 17 00:00:00 2001 From: Bintian Wang Date: Sun, 30 Jun 2013 20:34:24 +0800 Subject: Add compat_ioctl support for VFAT_IOCTL_GET_VOLUME_ID MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: John Stultz --- fs/fat/dir.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fs') 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); } -- cgit v1.2.3