From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miklos Szeredi Subject: Re: [PATCH v7 5/7] fuse: Simplfiy the posix acl handling logic. Date: Tue, 27 Feb 2018 10:00:25 +0100 Message-ID: References: <87po4rz4ui.fsf_-_@xmission.com> <20180226235302.12708-5-ebiederm@xmission.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20180226235302.12708-5-ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: "Eric W. Biederman" Cc: Linux Containers , lkml , Seth Forshee , Alban Crequy , Sargun Dhillon , linux-fsdevel List-Id: containers.vger.kernel.org On Tue, Feb 27, 2018 at 12:53 AM, Eric W. Biederman wrote: > Rename the fuse connection flag posix_acl to cached_posix_acl as that > is what it actually means. That fuse will cache and operate on the > cached value of the posix acl. > > When fc->cached_posix_acl is not set, set ACL_DONT_CACHE on the inode > so that get_acl and friends won't cache the acl values even if they > are called. > > Replace forget_all_cached_acls with fuse_forget_cached_acls. This > wrapper only takes effect when cached_posix_acl is true to prevent > losing the nocache or noxattr status in when posix acls are not > cached. Shouldn't forget_cached_acl() be taught about ACL_DONT_CACHE? I think it makes sense to generally not clear ACL_DONT_CACHE, since it's not an actual acl value that needs forgetting. Thanks, Miklos