[OpenAFS] PTS oddity

CCRE@ccre.com CCRE@ccre.com
Wed, 24 Aug 2005 13:00:33 -0600


pts creategroup doesn't handle surprises very well

In the output below I pts setmax to -20000 and then create groups until I
reach a group that already exists at -20010

pts cg chokes with "pts: Couldn't allocate an id for this entry ; unable to
create group kim:foo11 with id 0 owned by 'kim'"

It would be a lot more graceful if "next available" were used instead of
"groupmax -1"

Kim



=================================
Kim (Dexter) Kimball
CCRE, Inc.
kim<dott>kimball<att>jpl.nasa.gov
dhk<att>ccre.com



jplis-fil-krb03$ pts setmax -g -20000
jplis-fil-krb03$ pts cg kim:foo -o kim
group kim:foo has id -20001
jplis-fil-krb03$ pts cg kim:foo2 -o kim
group kim:foo2 has id -20002
jplis-fil-krb03$ pts cg kim:foo3 -o kim
group kim:foo3 has id -20003
jplis-fil-krb03$ pts cg kim:foo4 -o kim
group kim:foo4 has id -20004
jplis-fil-krb03$ pts cg kim:foo5 -o kim
group kim:foo5 has id -20005
jplis-fil-krb03$ pts cg kim:foo7 -o kim
group kim:foo7 has id -20006
jplis-fil-krb03$ pts exa -20010
Name: gp.mixed_20010, id: -20010, owner: usperson_10, creator: itecadmin,
  membership: 9, flags: S-M--, group quota: 0.
jplis-fil-krb03$ pts exa -20007
pts: User or group doesn't exist ; unable to find entry for (id: -20007)
jplis-fil-krb03$ pts exa -20008
pts: User or group doesn't exist ; unable to find entry for (id: -20008)
jplis-fil-krb03$ pts exa -20009
pts: User or group doesn't exist ; unable to find entry for (id: -20009)
jplis-fil-krb03$
jplis-fil-krb03$ pts cg kim:foo8 -o kim
group kim:foo8 has id -20007
jplis-fil-krb03$ pts cg kim:foo9 -o kim
group kim:foo9 has id -20008
jplis-fil-krb03$ pts cg kim:foo10 -o kim
group kim:foo10 has id -20009
jplis-fil-krb03$ pts cg kim:foo11 -o kim
pts: Couldn't allocate an id for this entry ; unable to create group
kim:foo11 with id 0 owned by 'kim'