]> git.michaelhowe.org Git - packages/o/openafs.git/commit
DAFS: Remove VOL_SALVAGE_INVALIDATE_HEADER
authorAndrew Deason <adeason@sinenomine.net>
Mon, 29 Aug 2011 22:41:31 +0000 (17:41 -0500)
committerDerrick Brashear <shadow@dementix.org>
Wed, 26 Oct 2011 22:55:54 +0000 (15:55 -0700)
commit465e613b5d73380374eb69a226f4227e976e1f5c
tree499490760d3e0202236b295a8e41b0fa2f19e7e7
parent850ca0e1441d12f9dbc0545d97ab3d74318cff88
DAFS: Remove VOL_SALVAGE_INVALIDATE_HEADER

Currently VRequestSalvage_r takes a flag,
VOL_SALVAGE_INVALIDATE_HEADER, which causes the header for the
specified volume to be freed (via FreeVolumeHeader). This is almost
never safe to do, since there may be other users of the specified
volume that can be accessing the volume header at the same time.

There is also no reason to invalidate the header at the time of the
VRequestSalvage_r call, since the header must be invalidated when we
detach the volume (other utilities may change header information). So,
if there are any problems in the future because we do not invalidate
the header at the time of VRequestSalvage_r, it is the fault of the
detachment/offlining logic.

So, remove VOL_SALVAGE_INVALIDATE_HEADER and all of its users. Take
this opportunity to correctly document the VRequestSalvage_r headers
in the VRequestSalvage_r comment, as it was previously missing the
VOL_SALVAGE_NO_OFFLINE flag.

Reviewed-on: http://gerrit.openafs.org/5319
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit 4552dc552687267fce3c7a6a9c7f4a1e9395c8e5)

Change-Id: Ib991ecefea2115a3c4308ed3c261af7433c9b858
Reviewed-on: http://gerrit.openafs.org/5722
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
src/vol/volume.c
src/vol/volume.h