viced: Correct unblessed attach2 errors
authorAndrew Deason <adeason@sinenomine.net>
Wed, 28 Jul 2010 22:10:10 +0000 (17:10 -0500)
committerDerrick Brashear <shadow@dementia.org>
Thu, 29 Jul 2010 15:50:02 +0000 (08:50 -0700)
commit3a0efeebf63a721068165b3f55600c8eef9faab2
tree224ff20c16456005c7eb3649182a582798134ccf
parentec5f7f0e0284b38b86c32c2dfc842b08aca720ff
viced: Correct unblessed attach2 errors

Don't set the vp to NULL; instead just go to the general error
handling code. When a volume is not blessed, we just want it to go
offline, not go into an error state. Furthermore, we must free the
volume header when nUsers is set to 0, so manually do so when we do
not call VRequestSalvage_r.

Change-Id: I3ccd61ac219e092a5c9ee52cd563d007bc20a1a1
Reviewed-on: http://gerrit.openafs.org/2476
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/vol/volume.c