Add trivial acl helpers
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 12 Jan 2011 20:51:48 +0000 (12:51 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 10 Feb 2011 17:21:43 +0000 (09:21 -0800)
commit538f669f63e43b1d2a288c872a66b9d18b4a4bee
tree37e99892d397e8b4e8939e461a9326f577548511
parentc60bc1fbf0760c9797411e10c05426fc41052f0a
Add trivial acl helpers

The zfs acl code makes use of the two OpenSolaris helper functions
acl_trivial_access_masks() and ace_trivial_common().  Since they are
only called from zfs_acl.c I've brought them over from OpenSolaris
and added them as static function to this file.  This way I don't
need to reimplement this functionality from scratch in the SPL.

Long term once I take a more careful look at the acl implementation
it may be the case that these functions really aren't needed.  If
that turns out to be the case they can then be removed.
module/zfs/zfs_acl.c