Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp4625214pxb; Tue, 31 Aug 2021 09:24:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjuefFEIRNHRE/Es+gYyqbrpF5t3eiOVSIgyslSk8CQqQ37Zb50xWDm09LsdCAyX4Phu1b X-Received: by 2002:a17:906:7a0d:: with SMTP id d13mr21946792ejo.70.1630427050461; Tue, 31 Aug 2021 09:24:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630427050; cv=none; d=google.com; s=arc-20160816; b=oVTy8r1jFeTSYCROnYuiU5vcZhqdapsUdGzCbiqRirZ00yRswOf/Xa+J09oyoNvuCg tzIxI0uF/osgUEPiQ0LrsRtMIVckBjR0ljeyfsYzzwDL4bv+ca+qc9yPR7dlXUWsxK6P /ehH1CvPIFU/AOZWEZAMR+gCWex0HORmniGGu7KInn5Fc0Y420kWxEirgSH5wLu6NrqL MngUE8hiU99OBqy2I0uspBEqr69Mvn3QrOumy4Yzm9Ixg0/gZEQuQiwEar6QOXaPz/To a9B7QlsoN9G1gwVr5PJv/FPxA5+NL8mf6Wk1keV/oYhX3Oe5cFxOksOor23dGNws+zTY YaDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=6sjBYsgnQ2PmPdX06AQ2JvJobRcP9kuSQdfucv7aW/g=; b=oY9ktKX8RrGdQAoB8dmrR928WbnL/1oChgbZdTskWadE4gTDIIc2UBOcFBQgDBSfRw VV2BbmZRJX27nGvynHxzGkztf5HCjMvjuagIGyhLcnSXhKXSEkwn/FtT1WErWF28uFpJ yRhgy2gYoJPgkLOD0TPbXvUnzxc5VwBLA9boabKy7M71e/CPoYw+seBL80HgTWQ5QNeG vDUxWNxBSB7NSWx549KFWfoLCXqsyMnbgP2qGQNYjYNipL85LlLd1KEEnkcKGRZuQLvG EcNy7isBpeaSkK8A2P8O7/PvbWhe0mDlkbefPQ3rGI42YFuxC73a8srMcxc4Oxkbtbb3 WWKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=R3WujCfr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=paragon-software.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i19si19314589ejw.660.2021.08.31.09.23.35; Tue, 31 Aug 2021 09:24:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=R3WujCfr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=paragon-software.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239948AbhHaQUl (ORCPT + 99 others); Tue, 31 Aug 2021 12:20:41 -0400 Received: from relayfre-01.paragon-software.com ([176.12.100.13]:37800 "EHLO relayfre-01.paragon-software.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239136AbhHaQUj (ORCPT ); Tue, 31 Aug 2021 12:20:39 -0400 Received: from dlg2.mail.paragon-software.com (vdlg-exch-02.paragon-software.com [172.30.1.105]) by relayfre-01.paragon-software.com (Postfix) with ESMTPS id 87FC81D34; Tue, 31 Aug 2021 19:19:42 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1630426782; bh=6sjBYsgnQ2PmPdX06AQ2JvJobRcP9kuSQdfucv7aW/g=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=R3WujCfrqq7sHpYvvOlG4SgWfCw0p/CAma29nRskX4ZoZHrY30yiPutTYabEKQuUp UZNGkWFIEY8wz7vyKzKsr8kLRtlcGzvcVQe1cOo0OeDI12enM3Q3mCUranQTM/OjvH //WUXBMp1hnKMu5KgtmdNiqZ7n5psUbSACJy10nI= Received: from [192.168.211.15] (192.168.211.15) by vdlg-exch-02.paragon-software.com (172.30.1.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 31 Aug 2021 19:19:42 +0300 Subject: Re: [PATCH] fs/ntfs3: Remove fat ioctl's from ntfs3 driver for now To: Kari Argillander , CC: , =?UTF-8?Q?Pali_Roh=c3=a1r?= References: <20210824182020.1007329-1-kari.argillander@gmail.com> From: Konstantin Komarov Message-ID: Date: Tue, 31 Aug 2021 19:19:41 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210824182020.1007329-1-kari.argillander@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.211.15] X-ClientProxiedBy: vobn-exch-01.paragon-software.com (172.30.72.13) To vdlg-exch-02.paragon-software.com (172.30.1.105) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24.08.2021 21:20, Kari Argillander wrote: > 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 > --- > Earlier disgussion with Pali can be founded here: > lore.kernel.org/linux-fsdevel/20210824113304.eabzy7ulbuouzlac@pali/ > --- > fs/ntfs3/file.c | 8 -------- > 1 file changed, 8 deletions(-) > > diff --git a/fs/ntfs3/file.c b/fs/ntfs3/file.c > index 59344985c2e8..819afc4c902b 100644 > --- a/fs/ntfs3/file.c > +++ b/fs/ntfs3/file.c > @@ -10,7 +10,6 @@ > #include > #include > #include > -#include /* FAT_IOCTL_XXX */ > #include > > #include "debug.h" > @@ -50,15 +49,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); > } > Hi, Kari! Applied, thanks. Best regards.