[OpenAFS] Re: pts -expandgroups vs -supergroups

Jason Edgecombe jason@rampaginggeek.com
Sun, 25 Apr 2010 18:16:29 -0400


Derrick Brashear wrote:
> On Sun, Apr 25, 2010 at 1:45 PM, Andrew Deason <adeason@sinenomine.net> wrote:
>   
>> On Fri, 23 Apr 2010 13:00:46 -0400
>> Jason Edgecombe <jason@rampaginggeek.com> wrote:
>>
>>     
>>> ok, so -supergroups expands parents and -expandgroups expands
>>> children?
>>>       
>> No. -expandgroups expands whatever we're displaying (I think). If you
>> are displaying the children of a group, -expandgroups will expand all of
>> the children. If you are displaying what groups an entry is in,
>> -expandgroups will expand all of the supergroups.
>>
>> -supergroups displays the containing groups of a group instead of the
>> group membership. That is, currently if you pass 'pts mem' a group, it
>> will display the members of that group; if you give it a user, it will
>> display the groups that user is in. Before -supergroups, there was no
>> way to display what groups a group was in.
>>
>> Let me try an example to explain all of them. Say we have a group
>> group1, which contains group2, which contains user3.
>>
>> 'pts mem group1' will display "group2".
>>
>> 'pts mem group1 -expandgroups' will display "group2, user3"
>>
>> 'pts mem group2 -supergroups' will display "g1".
>>
>> 'pts mem user3' will display "group2"
>>
>> 'pts mem user3 -expandgroups' will display "group2, group1"
>>
>>     
>>> If that's the case, -supergroups would make more sense as
>>> "-parentgroups"
>>>
>>> Is it too late to rename that option?
>>>       
>> I thought that the term 'supergroup' has always referred to a group that
>> contained another group (in AFS PTS).
>>     
>
> Unless you're moose, it has.
>
>   
>> So, you're listing the group's
>> supergroups... I don't know, it makes sense to me. We could just make a
>> -parentgroups switch do the same thing as -supergroups, if there is
>> demand.
>>     
>
> This is the first time I've seen parentgroup used ever.
-parentgroup is my own invention. supergroup is the proper AFS term. 
When I first red about the -supergroup option, it wasn't clear what it 
did and the option wasn't a good mnemonic. That's why I suggested the 
option be named -parentgroup.

Jason