]> 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)
committerDerrick Brashear <shadow|account-1000005@unknown>
Sat, 28 Nov 2009 17:05:44 +0000 (09:05 -0800)
commitc7a59397af297b473f6776a7c220f98e53201b18
treeff994319bac796c313547b5dbb81ac18a130e813
parent70f6a328291fbba5e5cac5330119b66d6f4e4705
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