Skip to contentSkip to conversation

posix_acl: Add the check items

PATCH In review Liuwenyi 2 participants 5 messages Dec 21, 2009

Subsystems (6)
lore
Share & tools
lore

Liuwenyi

author
#0 lore raw

v2 cover posix_acl: Add the check items

Hi all:
This patch is moving the acl check(Null pointer and PTR_ERR) into fs/posix_acl.c.

Thanks for Matthew Wilcox's sguuestion.

---

Cc Chris Mason <[email protected]>
Cc Al Viro <[email protected]>
Cc Joel Becker <[email protected]>
Cc Chris Ball <[email protected]>
Cc James Morris <[email protected]>
Cc Serge Hallyn <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Andreas Dilger <[email protected]>
Cc Jan Kara <[email protected]>
Cc "Theodore Ts'o" <[email protected]>
Cc David Woodhouse <[email protected]>
Cc Steven Whitehouse <[email protected]>
Cc J. Bruce Fields <[email protected]>
Cc Neil Brown <[email protected]>
Cc Frank Filz <[email protected]>
Cc Boaz Harrosh <[email protected]>
Cc Mark Fasheh <[email protected]>
Cc Tiger Yang <[email protected]>
Cc Jeff Mahoney <[email protected]>
Cc Alex Elder <[email protected]>
Cc Eric Sandeen <[email protected]>
Signature · 7 lines
Best Regards,
Liuwenyi

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
#1 lore raw

I like taking these checks into posix_acl_valid, but I think the patch submission needs a bit more work.

All the patches are extremly whitespace mangled. And I don't think splitting them up makes a whole lot of sense, when we do API changes like this we usually fix up all callers. So please try to fix your mailer, merged them all into one, and maybe also chose a more descriptive subject line, e.g.

Subject: take checks for NULL and error pointers into posix_acl_valid()

And btw, at least the XFS change seems incorrect - previously we returned NULL acl pointer and this patch changes it to -EINVAL.

author
#2 lore raw

Thanks for your suggestion.

In my opinion the null point is a incorrect state for the acl, then I return -EINVAL.

I will check this state transition in XFS.

2009/12/21 Christoph Hellwig <[email protected]>:

Quoted 9 lines

I like taking these checks into posix_acl_valid, but I think the patch submission needs a bit more work.

All the patches are extremly whitespace mangled.  And I don't think splitting them up makes a whole lot of sense, when we do API changes like this we usually fix up all callers.  So please try to fix your mailer, merged them all into one, and maybe also chose a more descriptive subject line, e.g.

Quoted 7 lines

Subject: take checks for NULL and error pointers into posix_acl_valid()

And btw, at least the XFS change seems incorrect - previously we returned NULL acl pointer and this patch changes it to -EINVAL.

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs

#3 lore raw
In reply to Liuwenyi

I like taking these checks into posix_acl_valid, but I think the patch submission needs a bit more work.

All the patches are extremly whitespace mangled. And I don't think splitting them up makes a whole lot of sense, when we do API changes like this we usually fix up all callers. So please try to fix your mailer, merged them all into one, and maybe also chose a more descriptive subject line, e.g.

Subject: take checks for NULL and error pointers into posix_acl_valid()

And btw, at least the XFS change seems incorrect - previously we returned NULL acl pointer and this patch changes it to -EINVAL.

#4 lore raw
In reply to Liuwenyi

I like taking these checks into posix_acl_valid, but I think the patch submission needs a bit more work.

All the patches are extremly whitespace mangled. And I don't think splitting them up makes a whole lot of sense, when we do API changes like this we usually fix up all callers. So please try to fix your mailer, merged them all into one, and maybe also chose a more descriptive subject line, e.g.

Subject: take checks for NULL and error pointers into posix_acl_valid()

And btw, at least the XFS change seems incorrect - previously we returned NULL acl pointer and this patch changes it to -EINVAL.

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs