]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
vol_split: Recover from stream open failure
authorAndrew Deason <adeason@sinenomine.net>
Mon, 6 Dec 2010 22:11:24 +0000 (16:11 -0600)
committerDerrick Brashear <shadow@dementia.org>
Tue, 1 Feb 2011 00:15:06 +0000 (16:15 -0800)
Make sure we go through the error recovery code when we can't create a
stream, instead of just returning without cleaning up.

Reviewed-on: http://gerrit.openafs.org/3466
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 94591a635bdd23ba74298c64273d4688405aa370)

Change-Id: Iff1053a2ed1789f2a5047a59b8df4fad94e9062c
Reviewed-on: http://gerrit.openafs.org/3792
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/volser/vol_split.c

index 119549dc21bfab8fbecb03285e99d26b3f1ec81f..73fdeab18a162db8317495e66d4f15f2cabd56d6 100644 (file)
@@ -120,7 +120,7 @@ ExtractVnodes(struct Msg *m, Volume *vol, afs_int32 class,
        sprintf(m->line, "Couldn't stream open %s Index of volume %u\n",
                class ? "small":"large", V_id(vol));
        rx_Write(m->call, m->line, strlen(m->line));
-       return EIO;
+       code = EIO;
        goto Bad_Extract;
     }
     code = STREAM_SEEK(stream, vcp->diskSize, 0);