Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp268231pxb; Wed, 3 Feb 2021 05:16:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyKq4rNQ+hcYykRItjTpbEO0mUc+5WPavHpkUl7spDsU+VsK4jXmnv16GpP7Pj8BWs/GJGd X-Received: by 2002:a50:b746:: with SMTP id g64mr2880820ede.33.1612358166464; Wed, 03 Feb 2021 05:16:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612358166; cv=none; d=google.com; s=arc-20160816; b=mLtpoky5syAoJIfSGxmNuP6MhRnfJ8xQU9lUnBBrWvt9puJzo6lLC9su9S6F+QlzFw R9v/LNn2c9UzkQc0kX5Xi3KTxH6WyxJZrblK+CZBfNTQOfw9EvV0qvd6fKzL1b95n1iZ w9CSCvaAmOmxiX+eXu+/xYaMYyFC4r1AL809GEgadGWmElh9LxUQj/pkg18cDaxxrU3e CUw7uqfuKFZsH4LBJ5HpPZfK7ZRodN0HPKRaY67pRsi40NfjlEXcOasYu3ND7RNp6oz2 +cm9XPVy04ECLGWKRiQI+BoLO+2ZTSrDnw3kXtaqNDGwRkoT3jQ5i9q9QJzaaMov5eVg dwuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ez1wwjpaco0KteHOLeoyAT6uMeL8hWx9LM1hCKPLS5k=; b=c+dYGbLsy4klcEVfMPHY9o+aGvLroy/jUnD0wiyZFWPvWscOfKncJmRXW6UNg4NyCb NMdhwLCEOXhjZwCmVcUZqlqZPFVDlgYB6JwQ0RDzuNJqK7aldSgKHAAe+EfBDahr1hg7 1P3XfqLx94t4LiGwL42Do8aSuh8Yc6Mh5UF54svHK/NeOT4YAimXcq8E24ziU3JHUJTS HctsSxMWhbbTW0V1HFAQM5Z6Nl2gc8QWvJmQ4MFVEouUg85XFEZBHY3tyuW/S0PZPltY pIKP4AsxhsacN40Yz3nM8fUAoxBXL/QDj70rWQJy4M15NLcGMFPVC/ECwmXY/oi8y5r4 b5KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=D9FhYiM+; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gx15si1272957ejc.300.2021.02.03.05.15.41; Wed, 03 Feb 2021 05:16:06 -0800 (PST) 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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=D9FhYiM+; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231567AbhBCNOc (ORCPT + 99 others); Wed, 3 Feb 2021 08:14:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231492AbhBCNO0 (ORCPT ); Wed, 3 Feb 2021 08:14:26 -0500 Received: from mail-vk1-xa2c.google.com (mail-vk1-xa2c.google.com [IPv6:2607:f8b0:4864:20::a2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78BE9C061786 for ; Wed, 3 Feb 2021 05:13:46 -0800 (PST) Received: by mail-vk1-xa2c.google.com with SMTP id k1so2814235vkb.11 for ; Wed, 03 Feb 2021 05:13:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ez1wwjpaco0KteHOLeoyAT6uMeL8hWx9LM1hCKPLS5k=; b=D9FhYiM+MxWB+oPASVJaV3YhhH5H/3QdYSGkSeXm2TQgBM9jXVMyGRrIPqy4ZJLQ+i zeseRF3cm8dve5ZRousU4uVeiyCDU3xCtMaXoM6zr0cvS/KbkqwAdSNwrkf2fNcUogR5 yPTQnvbCgNOSXj0K22dpHVnQxUN4vEYRZ8Hnk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ez1wwjpaco0KteHOLeoyAT6uMeL8hWx9LM1hCKPLS5k=; b=uGOfq46VxPfDlckzhaKPdwIOjSHHexVps1qeHF7LM74/rZXoY2rn4XdFeq9PZhhrBj Y6Vx9ywu6sNyq69Ri0YgIwm9Dra8kQIp7jAoXgLzg8eAtnx33mHNHJlTMnWabT6MzUQW KGPtzGSslhPFYxamio7Esfc/inMx9KH2x7GmF63Nb2gvCnle+6i6T/zoIJPTiK1cwkuB T8Ui19vLsuuFzzNOwqbffX60brQdvVIqF79wjoTdkbJ/hy74+++Hy9cufDSo+NJHShBf D6hBwwhagmAz4fVRl/ItspdZvBEa565krBb+Xr1QmpqVLswjnRASGbW42oIiNMJ9o7hE EWrw== X-Gm-Message-State: AOAM533c7gfMquU3D90GqCUcew4Plfrg/ZOAw6kGikBfSe7eEPIzunUX OV055ZZYFjd57vbXgdmXHyOvlrixwQiBPDbhfwrZiA== X-Received: by 2002:a1f:99c2:: with SMTP id b185mr995265vke.3.1612358025733; Wed, 03 Feb 2021 05:13:45 -0800 (PST) MIME-Version: 1.0 References: <20210203124112.1182614-1-mszeredi@redhat.com> <20210203130501.GY308988@casper.infradead.org> In-Reply-To: <20210203130501.GY308988@casper.infradead.org> From: Miklos Szeredi Date: Wed, 3 Feb 2021 14:13:27 +0100 Message-ID: Subject: Re: [PATCH 00/18] new API for FS_IOC_[GS]ETFLAGS/FS_IOC_FS[GS]ETXATTR To: Matthew Wilcox Cc: Miklos Szeredi , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Al Viro , Andreas Dilger , Andreas Gruenbacher , Christoph Hellwig , "Darrick J . Wong" , Dave Kleikamp , David Sterba , Jaegeuk Kim , Jan Kara , Joel Becker , Matthew Garrett , Mike Marshall , Richard Weinberger , Ryusuke Konishi , "Theodore Ts'o" , Tyler Hicks Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 3, 2021 at 2:08 PM Matthew Wilcox wrote: > > On Wed, Feb 03, 2021 at 01:40:54PM +0100, Miklos Szeredi wrote: > > This series adds the infrastructure and conversion of filesystems to the > > new API. > > > > Two filesystems are not converted: FUSE and CIFS, as they behave > > differently from local filesystems (use the file pointer, don't perform > > permission checks). It's likely that these two can be supported with minor > > changes to the API, but this requires more thought. > > Why not change the API now? ie pass the file instead of the dentry? These are inode attributes we are talking about, not much sense in passing an open file to the filesystem. That was/is due to ioctl being an fd based API. It would make more sense to convert these filesystems to use a dentry instead of a file pointer. Which is not trivial, unfortuantely. Thanks, Miklos