Return-Path: Received: from mail-lb0-f178.google.com ([209.85.217.178]:32933 "EHLO mail-lb0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752757AbbJLTtT (ORCPT ); Mon, 12 Oct 2015 15:49:19 -0400 Received: by lbbk10 with SMTP id k10so41328109lbb.0 for ; Mon, 12 Oct 2015 12:49:17 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <561BC61E.6010704@Netapp.com> References: <1444604337-17651-1-git-send-email-andreas.gruenbacher@gmail.com> <1444604337-17651-45-git-send-email-andreas.gruenbacher@gmail.com> <561BC61E.6010704@Netapp.com> Date: Mon, 12 Oct 2015 21:49:17 +0200 Message-ID: Subject: Re: [PATCH v10 44/46] nfs: Add richacl support From: Andreas Gruenbacher To: Anna Schumaker Cc: Andreas Gruenbacher , Alexander Viro , "Theodore Ts'o" , Andreas Dilger , "J. Bruce Fields" , Jeff Layton , Trond Myklebust , Dave Chinner , linux-ext4 , xfs@oss.sgi.com, LKML , linux-fsdevel , Linux NFS Mailing List , linux-cifs@vger.kernel.org, Linux API Content-Type: text/plain; charset=UTF-8 Sender: linux-nfs-owner@vger.kernel.org List-ID: Anna, On Mon, Oct 12, 2015 at 4:39 PM, Anna Schumaker wrote: > I'm not a fan of the "one giant function" approach. Is there any way to split richacl_from_nfs4_acl() into several smaller functions? sure, parsing the usr/group identifier could be put in a separate function, for example. That function cannot stay as it is right now anyway --- we really need idmapper to tell us when an identifier string cannot be mapped to a uid or gid so that we can preserve that identifier. Thanks, Andreas