]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Implementation of new dump tag and length standard
authorHartmut Reuter <reuter@rzg.mpg.de>
Fri, 11 Sep 2009 10:29:45 +0000 (12:29 +0200)
committerDerrick Brashear <shadow|account-1000005@unknown>
Mon, 28 Sep 2009 09:59:14 +0000 (02:59 -0700)
commit3f2dd80697959f5922032f4d4a7c9ef0cfadf35c
tree63deb14859fba9dc84d61f91f2248eb97274a2e1
parent9a82cdae42512dc6cd55dcc961eec6b1932e707f
Implementation of new dump tag and length standard

The implementation follows the specification from October 2007.

All old tags are accecpted as before.
New tags 0x06-0x60 (capital letters) are followed by a 1 byte length
field which may contain directly the length (up to 127) or the length
of the then following length field (max 8) ored with 0x80.
New tags 0x61-0x77a are directly followed by 4 bytes building a 32bit
integer.
0x7b-0xf are single-byte tags, 0x7e meaning next tag is critical.

On this basis unknown tags can be skipped unless they were marked
critical. In this case the restore is aborted.

in dump.h tags following the new standard are marked by an asterisk

Last update: added parameter types for HandleUnknownTag.

Reviewed-on: http://gerrit.openafs.org/191
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/volser/dumpstuff.c