From a97131c29c997e81b6fa1d1adf8f3ca07b63a2e1 Mon Sep 17 00:00:00 2001 From: Kari Argillander Date: Tue, 24 Aug 2021 21:20:20 +0300 Subject: [Backport a97131c29c99] src: Remove fat ioctl's from ntfs3 driver for now For some reason we have FAT ioctl calls. Even old ntfs driver did not use these. We should not use these because it his hard to get things out of kernel when they are upstream. That's why we remove these for now. More discussion is needed what ioctl should be implemented and what is important. Signed-off-by: Kari Argillander Signed-off-by: Konstantin Komarov --- src/file.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/file.c b/src/file.c index 26346771d9dc765c6faddc96913bca512e1f768a..62ebfa324bff5814d0937ac13a043a408e4d3f4d 100644 --- a/src/file.c +++ b/src/file.c @@ -12,7 +12,6 @@ #include #include #include -#include /* FAT_IOCTL_XXX */ #include #include "debug.h" @@ -52,15 +51,8 @@ static long ntfs_ioctl(struct file *filp, u32 cmd, unsigned long arg) { struct inode *inode = file_inode(filp); struct ntfs_sb_info *sbi = inode->i_sb->s_fs_info; - u32 __user *user_attr = (u32 __user *)arg; switch (cmd) { - case FAT_IOCTL_GET_ATTRIBUTES: - return put_user(le32_to_cpu(ntfs_i(inode)->std_fa), user_attr); - - case FAT_IOCTL_GET_VOLUME_ID: - return put_user(sbi->volume.ser_num, user_attr); - case FITRIM: return ntfs_ioctl_fitrim(sbi, arg); } -- 2.31.1