Consolidate code for reading/writing vol headers
authorAndrew Deason <adeason@sinenomine.net>
Thu, 4 Feb 2010 22:26:21 +0000 (16:26 -0600)
committerDerrick Brashear <shadow@dementia.org>
Tue, 9 Feb 2010 19:53:00 +0000 (11:53 -0800)
commita1616e2c93b0922a47958d2c4dc8db41202adca0
tree1fbeb4a8a38245ab72a9f9a335de713b6c826074
parent3913aa55eed10f9d6316910ef950f5c3242e20d7
Consolidate code for reading/writing vol headers

The code for reading in and overwriting/replacing volume headers is
duplicated many times throughout the volume package. Consolidate the
code into the functions VReadVolumeHeader, VWriteVolumeHeader,
VCreateVolumeHeader, and VDestroyVolumeHeader. This makes it easy to
change the semantics of how headers are read/written, though this commit
should not change them.

Change-Id: Id395ee25fc2db92de9301b9cdbe18f30830e18d3
Reviewed-on: http://gerrit.openafs.org/1238
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/vol/listinodes.c
src/vol/namei_ops.c
src/vol/nuke.c
src/vol/purge.c
src/vol/vol-salvage.c
src/vol/volume.c
src/vol/volume.h
src/vol/vutil.c