Fixed groupmember (chown.t00) nonconformance to the NTFS-3G conformance tests.
authorManuel Amador (Rudd-O) <rudd-o@rudd-o.com>
Sat, 15 Aug 2009 23:55:39 +0000 (18:55 -0500)
committerManuel Amador (Rudd-O) <rudd-o@rudd-o.com>
Sat, 15 Aug 2009 23:55:39 +0000 (18:55 -0500)
commitd5beed66a943c04299b988ddf6792ff3f7de2fc1
treea057ad07c31fa2c01db1c917ceabb474fb81f4f7
parent00388a3bda3b51f08c447c386d0621ec2bfddae1
Fixed groupmember (chown.t00) nonconformance to the NTFS-3G conformance tests.

Emmanuel: So the 1st patch, groupmember tries to reduce the number of calls to
groupmember since it's a slow function. I noticed zfs-fuse calls this
internally even when using root rights, which is a complete waste of time,
so I just added a few lines to return immediately if testing with root
access.
But since the cred_t was an opaque struct and I wanted to make things
easier, I also had to move the declaration of cred_t from cred_impl.h to
cred.h (read the patch, it's easier to understand when you read it).

Ref: http://groups.google.com/group/zfs-fuse/msg/c20b60d79b498671?hl=en
src/lib/libsolkerncompat/include/sys/cred.h
src/lib/libsolkerncompat/include/sys/cred_impl.h
src/lib/libzpool/zfs_fuid.c
src/zfs-fuse/zfs_acl.c