Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4648703ybl; Mon, 26 Aug 2019 13:44:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqztPnKjd0y2U5nUxB1CZRhzTs90aFH+rG/OAClTrA8BrWMtS6O5uZSFMVc3grmkjKar5XUo X-Received: by 2002:a65:5183:: with SMTP id h3mr17114050pgq.250.1566852261865; Mon, 26 Aug 2019 13:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566852261; cv=none; d=google.com; s=arc-20160816; b=JgP1dznOP1W7iPBs6sSyo+yfJealoaiBZvfxpl7x7ngHWfpR031nbKKL5jePla2ezW aMGUbtcsDZzvHehjUsmzL3Qj5GkYG31z99ji/7cF0Dg18Aknim2kLQWyt9xTba3E1tpx 9WQe6n/ZVkiuYpOLaDZR1O9oacxUNBnmwLN3L+wYg6sibSUFwapgq36UuitRkR0gFjX6 BUHWzJl5ggVHzh5Yltaxc1qAfB5DbPBu1u7Stinq3QogtVrO5aToOT88ea0/jLL9cSyY xK1Jz9MCX+fgt2+7aVn9tNWF0yyFRuw7VDcSE/T8CoFKhYvau6abpSKcQq0mIERun5P7 tnXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=UYvaDsjOpBziMsZF8OnMZ6BK4tzp/kY/XaOCFw9sCtU=; b=pLhY6ee7Dj15hxy3CEW6j0LF4R+FsofaTSKtnX/9DWnz2vOM2b8Z9B4YC82CDVUT9q 67GheNiqZ2Ixu9BtuOy6xM04iXnq3H30MYuz1+rEVa8AfkGEgPmX/WZxWHMUmcqByT37 XG7t5HUT7I09uCiYnfgjUbf93NMJD4IgiuDQfW9ezvpKe2ONKUkrTZmm9oXGvt3Oq+zm dbWqfmEjec7YKA+I5q0jZJCgnk8jwELlVg8EUsd7ndvBneovPxqwQzuymmpNbc/yTQg/ DmreHJRB1dCY6hg6cF2cV9myqdiaTvZJ0vE2w7jVyii/binh+XeoiQMGVScR2v4P6fHD ixnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@umich.edu header.s=google-2016-06-03 header.b=CC8BPPkd; 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=NONE sp=NONE dis=NONE) header.from=umich.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v24si10066727pgn.64.2019.08.26.13.43.54; Mon, 26 Aug 2019 13:44:21 -0700 (PDT) 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=@umich.edu header.s=google-2016-06-03 header.b=CC8BPPkd; 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=NONE sp=NONE dis=NONE) header.from=umich.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733066AbfHZTau (ORCPT + 99 others); Mon, 26 Aug 2019 15:30:50 -0400 Received: from mail-vs1-f67.google.com ([209.85.217.67]:41356 "EHLO mail-vs1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732741AbfHZTat (ORCPT ); Mon, 26 Aug 2019 15:30:49 -0400 Received: by mail-vs1-f67.google.com with SMTP id m62so11714602vsc.8 for ; Mon, 26 Aug 2019 12:30:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=google-2016-06-03; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=UYvaDsjOpBziMsZF8OnMZ6BK4tzp/kY/XaOCFw9sCtU=; b=CC8BPPkdICWDUORgHUeCHFq68IJGx68Vkma42zPun7/qLumzkfZW7KZv9tQMhHSKOp hoturaN0padhVTGC783TrCD68iLlWoy1TwQJEgbfKHnSGs/bdBaejNm0HHg69a6a/U43 q58PEdol8/WzOS+h60+AXOK/kUEv8X6n+P7Xotunu0rrBaK+EJepcjsH689jxVfQgtPZ lP0BL1r89cvdSBq4vheLxq3MD4MQJkxc3Qgt37GgBK2VVWoTRReXfuQ2l9p00JFPgvIC x99lVSUDxebRFP9lrbwlmJcGh5tNX7TN0W9TqvffnPz27gZE+hqEcVW1CtqEUicm1XnQ tM4w== 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:content-transfer-encoding; bh=UYvaDsjOpBziMsZF8OnMZ6BK4tzp/kY/XaOCFw9sCtU=; b=EtXzhRUMGa4WzkWrgBlmoKcp2lfrrdYBHw1VSfeVelKdadjoCpB+T7y6LmndFsttPh ENBa8Aq8tvZrnY9+Q4DMbO+rW64NMTjqCFxBkWOeS/GVXW6unT27VA8WPJJ6TB3z/gEh DSHXXHsHS1BsLiClw8252DaK9JCdqpovTCMzmMGUX7o8ElckGSOVqw7lYiHsap51w78v vlXRavkwFNWkWouo+pspuMDt9uJPEanmbaBQjn07HErR3MkF1L/pd1AyFzuir66IKN4B tiy7Xnj1eCm2Lun1haEgE+SYii2tc1lH1Z1VuIgjHKpsSa0TOaG4UcnKo6akqUvs3Ghd ATYw== X-Gm-Message-State: APjAAAUVjdTVIqfS+4B/hz3azdmKIQaqUs1lwU/Hayhqt7rgIaCFnJ5T bin37EICQ66fMKnk7kZ5S6JUM/ho9aCZzF1kjuE= X-Received: by 2002:a67:e401:: with SMTP id d1mr11276693vsf.215.1566847848340; Mon, 26 Aug 2019 12:30:48 -0700 (PDT) MIME-Version: 1.0 References: <85fc5336-416f-2668-c9e2-8474e6e40c33@math.utexas.edu> <20190826164600.GD28580@ndevos-x270> In-Reply-To: From: Olga Kornievskaia Date: Mon, 26 Aug 2019 15:30:37 -0400 Message-ID: Subject: Re: Maximum Number of ACL on NFSv4 To: "de Vandiere, Louis" Cc: "linux-nfs@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From fs/nfsd/acl.h /* * Maximum ACL we'll accept from a client; chosen (somewhat * arbitrarily) so that kmalloc'ing the ACL shouldn't require a * high-order allocation. This allows 204 ACEs on x86_64: */ #define NFS4_ACL_MAX ((PAGE_SIZE - sizeof(struct nfs4_acl)) \ / sizeof(struct nfs4_ace)) I don't know how Bruce feels about increasing that limit. Perhaps he'd be opened to a patch that increases that. On Mon, Aug 26, 2019 at 2:30 PM de Vandiere, Louis wrote: > > Thanks Niels, I tried your suggestion. According to the documentation (ht= tps://linux.die.net/man/8/mkfs.xfs), the maximum size for the inode is 2048= byte. So I set it to this value, and faced the exact same limitation. On t= he other hand, when I used setfacl -m on the XFS mounted disk, I did not fa= ce any limitation and I was able to set thousands of ACLs on a single file. > > When I do a strace, I see two different types of ACL used when the system= calls setxattr: system.posix_acl_default and system.nfsv4_acl. I tried to = look for hardcoded limits associated with system.nfsv4_acl but I don't have= much experience with C and linux kernel. > > Thank you for your help. > Best, > Louis de Vandi=C3=A8re > > -----Original Message----- > From: Niels de Vos > Sent: Monday, August 26, 2019 11:46 AM > To: de Vandiere, Louis > Cc: linux-nfs@vger.kernel.org > Subject: Re: Maximum Number of ACL on NFSv4 > > On Mon, Aug 26, 2019 at 02:53:05PM +0000, de Vandiere, Louis wrote: > > Yes, I assume it's not very frequent to have hundreds of NFSv4 ACLs. Fo= r compliance and organizational issue, we cannot use groups efficiently to = manage access to the shares, so it's user-based and case by case. > > > > My real goal is to be able to replicate some files to a new NFSv4 serve= r while preserving the ACLs. By using "cp -R --preserve=3Dall acl-folder/",= I'm able to preserve the ACLs when their number does not exceed 200, above= it, I see the "File too large" error while rsync does not work at all (eve= n in version 3.1.3). That's why I'm digging into this and checking what pos= sibly could go wrong. > > You might be hitting a limit in the filesystem on the NFS server. The ACL= s are stored in extended attributes. Depending on the filesystem, you may b= e able to configure larger inode sizes (or other storage for xattrs). With = XFS this can be done with 'mkfs -t xfs -i size=3D.. ...', > > HTH, > Niels > > > > > > Thank you. > > Best, > > Louis de Vandi=C3=A8re > > > > > > -----Original Message----- > > From: Goetz, Patrick G > > Sent: Monday, August 26, 2019 8:44 AM > > To: de Vandiere, Louis ; > > linux-nfs@vger.kernel.org > > Subject: Re: Maximum Number of ACL on NFSv4 > > > > I'm dying to know what the use case is for this, and why you can't just= do this with group permissions (unless you're talking about hundreds of gr= oup ACLs). > > > > On 8/23/19 5:31 PM, de Vandiere, Louis wrote: > > > Hi, > > > > > > I'm currently trying to apply hundreds of ACLs on file hosted on a NF= Sv4 server (nfs-utils-1.3.0-0.61.el7.x86_64 and nfs4-acl-tools.0.3.3-19.el7= .x86_64). It appears that the limit I can apply is 207. After the limit is = reached, the command "nfs4_setfacl -a" returned the error "Failed setxattr = operation: File too large". The same problem happens if I use an ACL with m= ore than 200 line in it. I did a little debugging session but I was not abl= e to come up with an explanation on why I'm facing such an issue. > > > > > > On the other hand, I can apply hundreds of ACLs on XFS without issue.= Do you know if it could be a bug with the nfs4-acl-tools package? > > > Thank you for your support. > > > Best, > > > Louis de Vandi=C3=A8re > > >>> This message is from an external sender. Learn more about why this = << > > >>> matters at https://eur01.safelinks.protection.outlook.com/?url=3Dht= tps%3A%2F%2Flinks.utexas.edu%2Frtyclf&data=3D02%7C01%7Clouis.devandiere= %40atos.net%7Ce3e196698745444ba59208d72a44ed69%7C33440fc6b7c7412cbb730e70b0= 198d5a%7C0%7C0%7C637024347858295832&sdata=3DpeZa9vHRp77QbOX2yTj204oWk8i= CO%2FxNbSMzkylf38M%3D&reserved=3D0. << > > >