All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] fs/ext*,f2fs,jffs2,reiserfs: give comments for aclsize and count calculation
@ 2013-01-04  1:45 Chen Gang
  0 siblings, 0 replies; only message in thread
From: Chen Gang @ 2013-01-04  1:45 UTC (permalink / raw)
  To: jack
  Cc: akpm, adilger.kernel, Theodore Ts'o, jaegeuk.kim, dwmw2,
	torvalds, linux-ext4, linux-f2fs-devel, linux-mtd, reiserfs-devel



------- Original Message -------
From: Jan Kara <jack@suse.cz>
To: Chen Gang <gang.chen@asianux.com>
Cc: jack@suse.cz; akpm@linux-foundation.org;adilger.kernel@dilger.ca; Theodore Tso <tytso@mit.edu>;jaegeuk.kim@samsung.com; dwmw2@infradead.org;torvalds@linux-foundation.org; linux-ext4@vger.kernel.org;linux-f2fs-devel@lists.sourceforge.net;linux-mtd@lists.infradead.org; reiserfs-devel@vger.kernel.org
Sent: Mon, 31 Dec 2012 16:45:59 +0100
Subject: Re: [PATCH] fs/ext*,f2fs,jffs2,reiserfs: give comments for aclsize and count calculation

>   I agree that defining a constant for this makes sence. Just please be
> more verbose with the comment. This is hardly readable for anyone not
> knowing what's going on in advance. Also braces around 4 are superfluous.
> Add something like the comment below before posix_acl_valid():
> 

  thank for your suggestions.

> /*
>  * posix_acl_valid() makes sure ACL format is the following:
>  * ACL_USER_OBJ ACL_USER*[1] ACL_GROUP_OBJ ACL_GROUP*[1] ACL_MASK[2] ACL_OTHER
>  *
>  * [1] Where * is the regexp sense of "0 or more times"
>  * [2] If ACL_USER or ACL_GROUP is present, then ACL_MASK must be present.
>  */
> 
> Then add comment before definition of ACL_MAX_SHORT_ENTRY:
> /*
>  * posix_acl_valid() makes sure that if there are <= 4 ACL entries, then
>  * all of them are short. Otherwise exactly 4 entries are short ones and
>  * other have full length. See comment before that function for exact ACL
>  * format.
>  */

  I will send patch v2 which include the contents which you provide.

    and also add Signed-of-by Jan Kara <jack@suse.cz>

  thanks.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-01-04  1:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-04  1:45 [PATCH] fs/ext*,f2fs,jffs2,reiserfs: give comments for aclsize and count calculation Chen Gang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.