]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Avoid IHandle leak when failing to attach volume
authorRainer Toebbicke <rtb@pclella.cern.ch>
Fri, 27 Nov 2009 14:03:25 +0000 (15:03 +0100)
committerRuss Allbery <rra@debian.org>
Mon, 30 Nov 2009 22:50:45 +0000 (14:50 -0800)
commitb68257bd7ab5b9a359899d593f3509e08daee538
tree5819eb7a1549460f9891a35a67d8d82eb3d5a0f1
parent1f953d73dafd387e8856f35a91146a7158f670db
Avoid IHandle leak when failing to attach volume

When a volume fails to attach, ensure it's volume handles
get released before all traces of it are erased. Failure to do so
might cause problems once the volume is salvaged and re-attached.
VReleaseVolumeHandles_r is moved to FreeVolume and no longer called separately.

Change-Id: I2366f13fd9daa6eb8ce3b4240bb1534f14f706c4
Reviewed-on: http://gerrit.openafs.org/874
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/vol/volume.c