From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Aneesh Kumar K.V" Subject: Re: [PATCH -V6 25/26] ext4: Implement rich acl for ext4 Date: Tue, 13 Sep 2011 09:55:30 +0530 Message-ID: <87zki99ih1.fsf@skywalker.in.ibm.com> References: <1315243548-18664-26-git-send-email-aneesh.kumar@linux.vnet.ibm.com> <1315243548-18664-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> <25112.1315572358@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dhowells-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, agruen-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, bfields-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org, akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org, linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: David Howells Return-path: In-Reply-To: <25112.1315572358-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> Sender: linux-nfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-fsdevel.vger.kernel.org On Fri, 09 Sep 2011 13:45:58 +0100, David Howells wrote: > Aneesh Kumar K.V wrote: > > > + retval = ext4_set_richacl(handle, inode, acl); > > + ext4_journal_stop(handle); > > + if (retval == ENOSPC && ext4_should_retry_alloc(inode->i_sb, &retries)) > > + goto retry; > > Should that be -ENOSPC? Fixed > > I do wonder, why does ext4 need to know about richacls at all? Surely, as far > as ext4 is concerned, they should be seen as xattrs? > richacl related changes to ext4 is minimal. They mostly are to call necessary permission check functions and to map xattr to richacl structure. > If ext4 needs a mark on disk to say it supports richacls, then why can't that > simply be the presence or lack thereof of a richacl on the root dir? > I have a patch in the full series which enable richacl on ext4 file system based on ext4 compatibility flags. I didn't add that as a part of this series to enable easy testing. The goal is to use tune2fs to enable richacl and them the mount option -o acl enable richacl/posix acl accordingly. -aneesh -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html