Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1675488ybt; Thu, 25 Jun 2020 11:22:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYRL9hvqMGJuR4JgDyEo8tvKKHKoA6seSVd80q8e9DlSMMmy/B6uQ+nXH7sa6l9Ux58b2/ X-Received: by 2002:a17:906:3905:: with SMTP id f5mr25136280eje.15.1593109348816; Thu, 25 Jun 2020 11:22:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593109348; cv=none; d=google.com; s=arc-20160816; b=lU2uCOQym3qOtJL8pgzzik0GO/kjhZMUJU9kDkg5ORKAz5K20WjOILqheZ8ltmigDp QVFVSvHpiwXUYSE+VJMn0cUWykLvGNu+G+wcO0Wt707ynH+V53YLfionZZ0WoOwnTzJQ K1pAqae0mvy/m1ZbJ0MPJtD5UHyzzQypp0BiBBFjOUyF/wU55vnyvvi1MzU6EyesigXJ Wirdg2J6bfyVWKUA1QOW0cnBlHC4JPL/RzwNpESOGdON2h8o87YN6iQMvVi8IZqXJzxB bARPjMQso1aiJaGut4lNGCtTixQ0HYcASybjGNV74wTlSduaewmiHX6OUdsgGYc3gOeK RG4g== 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:dkim-signature:dkim-filter; bh=taoj4fEBL2XYuKGTw5DBfTott/w3SEy7nXmLpmToEmw=; b=ufRYSfdTCdzSjU796z27f3zpWUW/aMs51z+U/ZO8iMyWnElYhvLQeXgUjvvUoAyoWG 3VY0SBuh4fCQgNvoULpGMnQTXXwHhy9Uj0ejC5ECg/jnDhEM2PcWIShnqSvJ1JuOs4yf VKScZtR43nYZUStbveq22LB9Roz71R6YPKDc/yRHyNLm9NovY/rnuScr91E0uJUwyHB7 Tk8CdxOT0zygG3xpjMdQ9K9tNSFl4yDVdjqpMUqvWBev+1aB7A0MjHWl3QKBS1ae0ZJN IM2rrehHMHiT6wWc0v2RCHHK2qnNutUSEZn3togJan8wlmYa7nc+FQ8Kr4H4rX9A1mNO wUMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=BVzKIRFS; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-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 cm12si8364130edb.333.2020.06.25.11.21.55; Thu, 25 Jun 2020 11:22:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=@fieldses.org header.s=default header.b=BVzKIRFS; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391030AbgFYQuj (ORCPT + 99 others); Thu, 25 Jun 2020 12:50:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390474AbgFYQuj (ORCPT ); Thu, 25 Jun 2020 12:50:39 -0400 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22AD4C08C5C1 for ; Thu, 25 Jun 2020 09:50:39 -0700 (PDT) Received: by fieldses.org (Postfix, from userid 2815) id 1A471878B; Thu, 25 Jun 2020 12:50:38 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org 1A471878B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1593103838; bh=taoj4fEBL2XYuKGTw5DBfTott/w3SEy7nXmLpmToEmw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BVzKIRFSQsfQxznm8f2VGbqbjDEBZpub+nS2D5SXn4LKf16nTA/UlNu/0G2QTpQfR +lD5VIW0ywxv7SpyNlXD2Vv5MOOwP6XdWjXb3hsTNvzlnbIU0SdE8qBmJuAIAbg0t/ I/1r8nS2DYsxOAukNm/KkWibWDXyBAzZfb6n+TSY= Date: Thu, 25 Jun 2020 12:50:38 -0400 From: "J. Bruce Fields" To: Frank van der Linden Cc: chuck.lever@oracle.com, linux-nfs@vger.kernel.org Subject: Re: [PATCH v3 00/10] server side user xattr support (RFC 8276) Message-ID: <20200625165038.GA30655@fieldses.org> References: <20200623223927.31795-1-fllinden@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200623223927.31795-1-fllinden@amazon.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Tue, Jun 23, 2020 at 10:39:17PM +0000, Frank van der Linden wrote: > v3: > * Rebase to v5.8-rc2 > * Use length probe + allocate + query for the listxattr and setxattr > operations to avoid allocating unneeded space. > * Because of the above, drop the 'use kvmalloc for svcxdr_tmpalloc' patch, > as it's no longer needed. > > v2: > * As per the discussion, user extended attributes are enabled if > the client and server support them (e.g. they support 4.2 and > advertise the user extended attribute FATTR). There are no longer > options to switch them off. > * The code is no longer conditioned on a config option. > * The number of patches has been reduced somewhat by merging > smaller, related ones. > * Renamed some functions and added parameter comments as requested. > > v1: > > * Split in to client and server (changed from the original RFC patch). > > Original RFC combined set is here: > > https://www.spinics.net/lists/linux-nfs/msg74843.html > > In general, these patches were, both server and client, tested as > follows: > * stress-ng-xattr with 1000 workers > * Test all corner cases (XATTR_SIZE_*) > * Test all failure cases (no xattr, setxattr with different or > invalid flags, etc). > * Verify the content of xattrs across several operations. Do you have some code to share for these tests? --b. > * Interop run against FreeBSD server/client implementation. > * Ran xfstests-dev, with no unexpected/new failures as compared > to an unpatched kernel. To fully use xfstests-dev, it needed > some modifications, as it expects to either use all xattr > namespaces, or none. Whereas NFS only suppors the "user." > namespace (+ optional ACLs). I will send the changes in > seperately. > > > Frank van der Linden (10): > xattr: break delegations in {set,remove}xattr > xattr: add a function to check if a namespace is supported > nfs,nfsd: NFSv4.2 extended attribute protocol definitions > nfsd: split off the write decode code in to a separate function > nfsd: add defines for NFSv4.2 extended attribute support > nfsd: define xattr functions to call in to their vfs counterparts > nfsd: take xattr bits in to account for permission checks > nfsd: add structure definitions for xattr requests / responses > nfsd: implement the xattr functions and en/decode logic > nfsd: add fattr support for user extended attributes > > fs/nfsd/nfs4proc.c | 128 ++++++++- > fs/nfsd/nfs4xdr.c | 531 +++++++++++++++++++++++++++++++++++--- > fs/nfsd/nfsd.h | 5 +- > fs/nfsd/vfs.c | 239 +++++++++++++++++ > fs/nfsd/vfs.h | 10 + > fs/nfsd/xdr4.h | 31 +++ > fs/xattr.c | 111 +++++++- > include/linux/nfs4.h | 22 +- > include/linux/xattr.h | 4 + > include/uapi/linux/nfs4.h | 3 + > 10 files changed, 1044 insertions(+), 40 deletions(-) > > -- > 2.17.2