OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-2837-g6f6bfb3
Gerrit Code Review
gerrit@openafs.org
Tue, 14 Aug 2012 12:54:01 -0700 (PDT)
The following commit has been merged in the master branch:
commit 6f6bfb31acb0cfbe166d4df9f06a12bbdec0f496
Author: Simon Wilkinson <sxw@your-file-system.com>
Date: Tue Jul 17 16:50:59 2012 +0100
opr: Add UUID handling functions
Add a set of functions to the opr library to handle creating and
manipulating UUIDs.
The opr_uuid_t type is held as a 16 octet character string, which
comprises the UUID encoded into network byte order. This is the
primary form for manipulating UUIDs with this library, as it avoids
any nbo/hbo problems.
For applications which require raw access to the UUID components,
the opr_uuid_unpacked structure is provided, and
opr_uuid_pack/opr_uuid_unpack can be used to convert to and from
this format.
Finally, functions to print the UUID as a string, and parse a UUID
from a string, are provided. When printing, we use the standard UUID
format of 000000-0000-0000-0000-00000000. However, the afsUUID library
used to print UUIDs as 000000-0000-0000-00-00-00000000, so we also
accept this format.
Change-Id: I78ef79b7ab8ae15fb955c6495118722875c94f8d
Reviewed-on: http://gerrit.openafs.org/7977
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Makefile.in | 2 +-
acinclude.m4 | 6 ++
src/opr/Makefile.in | 8 ++-
src/opr/NTMakefile | 4 +-
src/opr/uuid.c | 163 +++++++++++++++++++++++++++++++++++++++++++++++++
src/opr/uuid.h | 38 +++++++++++
tests/TESTS | 1 +
tests/opr/Makefile.in | 5 +-
tests/opr/uuid-t.c | 65 +++++++++++++++++++
9 files changed, 287 insertions(+), 5 deletions(-)
--
OpenAFS Master Repository