]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Recover from afs_GetVolSlot errors
authorAndrew Deason <adeason@sinenomine.net>
Wed, 21 Apr 2010 17:41:21 +0000 (12:41 -0500)
committerDerrick Brashear <shadow@dementia.org>
Thu, 20 May 2010 11:51:23 +0000 (07:51 -0400)
commitd4e724e9b7435d947f5cb21986a8273ba02a57e6
tree8b370449cf958219db502affbf562b50d45eea17
parentaf0f27f0b7e7c5d278b0dc746d8f2c5efdce4246
Recover from afs_GetVolSlot errors

afs_GetVolSlot can panic in a few different ways, such as failing to
read from or write to VolumeInfo. Instead of panic'ing, return an
error to the application. Adjust callers to deal with getting a NULL
volume returned.

Based on a patch by Mike Meffie.

Change-Id: Ibb301fed795ee9ee5906b8e7973945a06218b8f1
Reviewed-on: http://gerrit.openafs.org/1801
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry-picked from commit 80f05473428969ff71d1791cda8cb09d30223724)

Change-Id: Ie89034cb0fcc8f92868f338996d62edfe150b1b2
Reviewed-on: http://gerrit.openafs.org/2004
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/afs/afs_volume.c