Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp75456ybx; Mon, 4 Nov 2019 16:07:05 -0800 (PST) X-Google-Smtp-Source: APXvYqx3OMGtCcb2rxFQuK5YTJN9qUIfI6UOqHK1iB1ZZ0dPyD+wd49qaDL9S8iFycs5EIqQANXd X-Received: by 2002:aa7:c34c:: with SMTP id j12mr32358003edr.175.1572912425406; Mon, 04 Nov 2019 16:07:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572912425; cv=none; d=google.com; s=arc-20160816; b=veNS+qQrirzVsdkD/LRY+FatFrpUcHIzceY+ea362UxCErN3NglykLKuNWguKd/wBA BI7+dHPwDJgDBE4PoqvnWh3+vcz/fgNtHGfg076v9oB9HMyCr9jJna+Lv3PBqto5Tler C02riNNS0u2tTCy1BvQ34lRPcidzxNmLbK3eBdcaW2duhzLlMoZJT8ZilAnWyfO45Mso 8H1ImZ/pzL+kyRs26Xi4fpX6Ks0R9LIU8r5SW9U+RtqlxWvOR/S6yYll6PLfen4ph61P 0GQfOyww9mXoOU4u18MOupyw3dzQYzodLMNoqTY0JWdU5ppb3+Stm0zp+9jY37SdePI2 BDEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:dkim-signature; bh=wHCb0DOmdBzYoKDMkMD9QuuVs7vQesj/JneQ/kip5P0=; b=BXhVJ7u2YptMOamIJRXXd67XlwCnRNpUp/MI8yOVUOSYKnunAogDDyk5rMo3F971Xi WPZXyIbEd4IYlqKKOL3v+oMjxMoLeMkmtqSrP7nST7rFBCnlEsY+S/IPajwPhiJ54uNN tie0qb09OI3fLPSjxhtndrnFAhY+QRGQjpQNQiMdrA4m9tTtza88gVXrUiUrWYEvsJAM lYlcA23ObMb31Nx8j9l+wmMXxNIK8GSEAXh1QArLEgXaLSODnUQYpI6XiFFvFNbmYVho czx4mBtuDyAAwOzutPMdSD03bfPpvnkGgqjPeHqVUBMPSEv2DN5+Fs6zRJc4fKCCt1lN Rt4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=cJ3AIfAz; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b47si9547572edb.286.2019.11.04.16.06.28; Mon, 04 Nov 2019 16:07:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=cJ3AIfAz; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729490AbfKEAGY (ORCPT + 99 others); Mon, 4 Nov 2019 19:06:24 -0500 Received: from smtp-fw-33001.amazon.com ([207.171.190.10]:41368 "EHLO smtp-fw-33001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728234AbfKEAGX (ORCPT ); Mon, 4 Nov 2019 19:06:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1572912382; x=1604448382; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=wHCb0DOmdBzYoKDMkMD9QuuVs7vQesj/JneQ/kip5P0=; b=cJ3AIfAzMC61+Ffp4ks5MVXmYsrbl++/DFXL/TAcorACzR2wqwSM9VXx NIyov8pEKZtrRtqN4bgP/yXwTJ7QfhKhuccbpY+W4Mob0jgWFEAVEOd4A dUtIwOuJQbkrhHivFa7/Q+rfAUjKzoerBojmAu9091ZH/wvlyyWq08E5y Y=; IronPort-SDR: QprfF84xfmk4eZzeW+mz6/8I8dCVQESW9VHPlMivnWoT6AiljdD092VXBuaIiFbW7mz7WoN9xV wDAktcRJ3Q0w== X-IronPort-AV: E=Sophos;i="5.68,268,1569283200"; d="scan'208";a="4107701" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2a-e7be2041.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-33001.sea14.amazon.com with ESMTP; 05 Nov 2019 00:06:13 +0000 Received: from EX13MTAUEA001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2a-e7be2041.us-west-2.amazon.com (Postfix) with ESMTPS id 9DDD9A17C0; Tue, 5 Nov 2019 00:06:12 +0000 (UTC) Received: from EX13D11UEE002.ant.amazon.com (10.43.62.113) by EX13MTAUEA001.ant.amazon.com (10.43.61.243) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 5 Nov 2019 00:06:12 +0000 Received: from EX13MTAUEE001.ant.amazon.com (10.43.62.200) by EX13D11UEE002.ant.amazon.com (10.43.62.113) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 5 Nov 2019 00:06:11 +0000 Received: from dev-dsk-fllinden-2c-c1893d73.us-west-2.amazon.com (172.23.141.97) by mail-relay.amazon.com (10.43.62.226) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Tue, 5 Nov 2019 00:06:11 +0000 Received: by dev-dsk-fllinden-2c-c1893d73.us-west-2.amazon.com (Postfix, from userid 6262777) id B0006C8354; Tue, 5 Nov 2019 00:06:11 +0000 (UTC) Date: Tue, 5 Nov 2019 00:06:11 +0000 From: Frank van der Linden To: Bruce Fields CC: Chuck Lever , Linux NFS Mailing List , linux-fsdevel Subject: Re: [RFC PATCH 00/35] user xattr support (RFC8276) Message-ID: <20191105000352.GA24610@dev-dsk-fllinden-2c-c1893d73.us-west-2.amazon.com> References: <9CAEB69A-A92C-47D8-9871-BA6EA83E1881@gmail.com> <20191024231547.GA16466@dev-dsk-fllinden-2c-c1893d73.us-west-2.amazon.com> <18D2845F-27FF-4EDF-AB8A-E6051FA03DF0@gmail.com> <20191104030132.GD26578@fieldses.org> <358420D8-596E-4D3B-A01C-DACB101F0017@gmail.com> <20191104162147.GA31399@dev-dsk-fllinden-2c-c1893d73.us-west-2.amazon.com> <20191104225846.GA13469@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20191104225846.GA13469@fieldses.org> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Mon, Nov 04, 2019 at 05:58:46PM -0500, Bruce Fields wrote: > Just checking code for other filesystems quickly; if I understand right: > > - ext4 has user_xattr and nouser_xattr options, but you get a > deprecation warning if you try to use the latter; > - xfs doesn't support either option; > - cifs supports both, with xattr support the default. > > Not necessarily my call, but just for simplicity's sake, I'd probably > leave out the option and see if anybody complains. Sounds good, I'll go with that. > > > Also, currently, my code does not fail the mount operation if user xattrs > > are asked for, but the server does not support them. It just doesn't > > set NFS_CAP_XATTR for the server, and the xattr handler entry points > > eturn -EOPNOTSUPP, as they check for NFS_CAP_XATTR. What's the preferred > > behavior there? > > getxattr(2) under ERRORS says: > > ENOTSUP > Extended attributes are not supported by the filesystem, > or are disabled. > > so I'm guessing just erroring out is clearest. > > I also see there's an EOPNOTSUPP return in the nouser_xattr case in > ext4_xattr_user_get. (errno(3) says ENOTSUP and EOPNOTSUPP are the same > value on Linux.) Sure. So, to recap, here's what I'll do: * Remove the CONFIG options - enable the code by default. * Server side: * Remove the export file option to not export extended attributes * Client side: * Always probe user xattr support, and use it when available (returning EOPNOTSUPP, as expected, for all xattr syscalls if it is not available). Thanks for the feedback so far - much appreciated. I'll submit the separate client and server patch sets this week. - Frank